Quantum Secular Labs / Blog / Advisories
CVE-2019-17621: D-Link DIR-859 Router Command Execution Vulnerability
CVE-2019-17621 is rated critical with a CVSS v3.1 base score of 9.8 and affects D-Link DIR-859 Router, along with 14 other products in NVD’s configuration data. Per its scoring, it can be exploited over the network, without authentication, without any user interaction. The scored impact on confidentiality, integrity and availability is the highest available. CISA added it to its Known Exploited Vulnerabilities catalog on 2023-06-29, which means exploitation in the wild has been observed.
Vulnerability description
The UPnP endpoint URL /gena.cgi in the D-Link DIR-859 Wi-Fi router 1.05 and 1.06B01 Beta01 allows an Unauthenticated remote attacker to execute system commands as root, by sending a specially crafted HTTP SUBSCRIBE request to the UPnP service when connecting to the local network.
Severity breakdown
CVSS v3.1 9.8: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector: Network. Exploitable remotely over the network, with no need for local or physical access.
- Attack complexity: Low. No special conditions; the attack can be repeated reliably.
- Privileges required: None. No account or prior access is needed.
- User interaction: None. No action from any user is needed.
- Scope: Unchanged. Impact stays within the vulnerable component.
- Confidentiality impact: High. Total loss of confidentiality; sensitive data can be fully disclosed.
- Integrity impact: High. Total loss of integrity; data or system state can be fully modified.
- Availability impact: High. Total loss of availability; the component can be shut down.
Underlying weakness
CWE-78: Improper Neutralization of Special Elements used in an OS Command
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command before it is sent to a downstream component.
Affected products
- D-Link Dir 859 Firmware: up to and including 1.05b03; 1.06b01 beta1
- D-Link Dir 822 Firmware: up to and including 2.03b01; up to and including 3.12b04
- D-Link Dir 823 Firmware: up to and including 1.00b06; 1.00b06 beta
- D-Link Dir 865l Firmware: up to and including 1.07b01
- D-Link Dir 868l Firmware: up to and including 1.12b04; up to and including 2.05b02
- D-Link Dir 869 Firmware: up to and including 1.03b02; 1.03b02 beta02
- D-Link Dir 880l Firmware: up to and including 1.08b04
- D-Link Dir 890l Firmware: up to and including 1.11b01; 1.11b01 beta01
- D-Link Dir 890r Firmware: up to and including 1.11b01; 1.11b01 beta01
- D-Link Dir 885l Firmware: up to and including 1.12b05
- D-Link Dir 885r Firmware: up to and including 1.12b05
- D-Link Dir 895l Firmware: up to and including 1.12b10
- D-Link Dir 895r Firmware: up to and including 1.12b10
- D-Link Dir 818lx Firmware: all versions listed by NVD
References
- https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10146
- https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10147
- https://www.dlink.com/en/security-bulletin
- http://packetstormsecurity.com/files/156054/D-Link-DIR-859-Unauthenticated-Remote-Command-Execution.html
- https://medium.com/%40s1kr10s/d-link-dir-859-rce-unautenticated-cve-2019-17621-en-d94b47a15104
- https://www.ftc.gov/system/files/documents/cases/dlink_proposed_order_and_judgment_7-2-19.pdf
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-17621
- https://medium.com/%40s1kr10s/d-link-dir-859-rce-unautenticated-cve-2019-17621-es-fad716629ff9