What’s Vulnerable › Vulnerabilities
CVE-2023-32150: D-Link DIR-2640 PrefixLen Command Injection Remote Code Execution Vulnerability
- Severity: medium (CVSS 6.8 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 26.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-03 · updated 2026-06-17
- Weakness: CWE-78
Description
D-Link DIR-2640 PrefixLen Command Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DIR-2640 routers. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed. The specific flaw exists within the handling of the PrefixLen parameter provided to the HNAP1 endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of root. . Was ZDI-CAN-19547.
Affected products
- D-Link DIR-2640: 1.11b02
References
- https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10323
- https://www.zerodayinitiative.com/advisories/ZDI-23-542/
- https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10323
- https://www.zerodayinitiative.com/advisories/ZDI-23-542/
Get alerted when CVE-2023-32150 or the next vulnerability affects your stack