RCE in D-Link Dir-2640
CVE-2023-32153
D-Link DIR-2640 EmailFrom 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 EmailFrom 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-19550.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.8 (Medium). Vector: CVSS:3.0/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.269, 98.1th percentile (last changed ); up from 0.234 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.234 · newest: 0.269 · change: +0.035
Affected products
- D-Link Dir-2640 — versions 1.11B02 (non-US, CA version)
- Dlink Dir-2640 Firmware — versions 1.11b02
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (attilaszia/linux-iot-cves). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- ZDI-23-545 (x_research-advisory, Third Party Advisory)
- vendor-provided URL (Product, vendor-advisory, Vendor Advisory)