CVE-2023-32150
published medium CVSS 3.0 · 6.8D-Link DIR-2640 PrefixLen Command Injection Remote Code Execution Vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| D-Link | — | DIR-26401.11B02 (non-US, CA version) · Other versions: unknown | Affected | Not stated | zdi |
| dlink | — | dir-2640_firmware0 through 1.11b02 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| dlink | — | dir-2640_firmware0 through 1.11b02 · Other versions: unknown | Affected | Not stated | CISA-ADP |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- zdi · cna
- Vector string
- CVSS:3.0/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| D-Link | DIR-2640 | 1.11B02 (non-US, CA version) (affected)Default: unknown | zdi · cna |
| dlink | dir-2640_firmware | 0 through 1.11b02 (affected · custom)Default: unknown | CISA-ADP · adp |
| dlink | dir-2640_firmware | 0 through 1.11b02 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
2- vendor-provided URL https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10323
- ZDI-23-542 https://www.zerodayinitiative.com/advisories/ZDI-23-542/
Provider assertions
3zdi · cna
D-Link DIR-2640 PrefixLen Command Injection Remote Code Execution Vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0f83b6d2406190465fd53bb706f508021c0a911757b6dc8ac94141b08253433c
- Ingested
- 23 Sep 2026, 08:08:59 UTC
- Source record
- Official CVE record