CVE-2023-32150
MEDIUM 6.8CVSS 3.0D-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.
- Published
- 3 May 2024
- Last modified
- 17 Jun 2026
- Assigned by
- zdi-disclosures@trendmicro.com
- NVD status
- Analyzed
- Weakness
- CWE-78
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | zdi-disclosures@trendmicro.com (Secondary) | CVSS 3.0 | MEDIUM 6.8 | CVSS:3.0/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | dlink | dir-2640_firmwarecpe:2.3:o:dlink:dir-2640_firmware:1.11b02:*:*:*:*:*:*:* |
= 1.11b02 |
References
- https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10323 · Product, Vendor Advisory
- https://www.zerodayinitiative.com/advisories/ZDI-23-542/ · Third Party Advisory
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 3 May 2024)