6.8medium
D-Link DIR-2640 EmailFrom Command Injection Remote Code Execution Vulnerability
- Severity
- 6.8medium CVSS:3.0 by zdi
- Exploit likelihood
- 26.9% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- zdi
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| D-Link DIR-2640 | 1.11B02 (non-US, CA version) | CVE List |
| dlink dir-2640_firmware | up to 1.11b02, 1.11b02 | CVE List, NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Vulnerabilidad de ejecución remota de código de inyección de comando EmailFrom de D-Link DIR-2640. Esta vulnerabilidad permite a atacantes adyacentes a la red ejecutar código arbitrario en instalaciones afectadas de enrutadores D-Link DIR-2640. Aunque se requiere autenticación para aprovechar esta vulnerabilidad, se puede omitir el mecanismo de autenticación existente. La falla específica existe en el manejo del parámetro EmailFrom proporcionado al endpoint HNAP1. El problema se debe a la falta de validación adecuada de una cadena proporcionada por el usuario antes de usarla para ejecutar una llamada al sistema. Un atacante puede aprovechar esta vulnerabilidad para ejecutar código en el contexto de la raíz. Era ZDI-CAN-19550.
References
| https://www.zerodayinitiative.com/advisories/ZDI-23-545/ | third-party-advisory | |
| https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10323 | product, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-32153 changed 2024-09-18 | CVE Terms of Use |
| NVD | CVE-2023-32153 changed 2026-06-17 | Public domain |