RCE in D-Link Dir-818lw Firmware
CVE-2018-19987
D-Link DIR-822 Rev.B 202KRb06, DIR-822 Rev.C 3.10B06, DIR-860L Rev.B 2.03.B03, DIR-868L Rev.B 2.05B02, DIR-880L Rev.A 1.20B01_01_i3se_BETA, and DIR-890L Rev.A 1.21B02_BETA devices mishandle IsAccessPoint in /HNAP1/SetAccessPointMode. In the SetAccessPointMode.php source code, the IsAccessPoint parameter is saved in the ShellPath script file without any regex checking. After the script file is executed, the command injection occurs. A vulnerable /HNAP1/SetAccessPointMode XML message could have shell metacharacters in the IsAccessPoint element such as the `telnetd` string.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.129 (96.2th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 96th percentile — 96.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.129 · newest: 0.129 · change: 0.000
Affected products
- D-Link Dir-818lw Firmware — versions 2.05.b03
- D-Link Dir-822 Firmware — versions 202krb06
- D-Link Dir-860l Firmware — versions 2.03.b03
- D-Link Dir-868l Firmware — versions 2.05b02
- D-Link Dir-880l Firmware — versions 1.20b01_01_i3se
- D-Link Dir-890l\/r Firmware — versions 1.21b02
- Dlink Dir-818lw
- Dlink Dir-822
- Dlink Dir-822 Firmware — versions 3.10b06
- Dlink Dir-860l
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986 - 19990 (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2018-19987?
- CVE-2018-19987 is a critical-severity vulnerability in D-Link Dir-818lw Firmware, classified under OS Command Injection. CVSS score: 9.8/10. Published 2019-05-13.
- How severe is CVE-2018-19987?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2018-19987 known to be exploited?
- 8 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.