CVE-2018-19986: d-link dir-818l\(w\)_firmware OS Command Injection
Vulnerability summary
CVE-2018-19986 is a high (CVSS 10.0) OS Command Injection vulnerability in d-link dir-818l\(w\)_firmware. EPSS estimates a 41.61% chance of exploitation in the next 30 days, higher than 98.6% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 13-05-2019PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
Description
In the /HNAP1/SetRouterSettings message, the RemotePort parameter is vulnerable, and the vulnerability affects D-Link DIR-818LW Rev.A 2.05.B03 and DIR-822 B1 202KRb06 devices. In the SetRouterSettings.php source code, the RemotePort parameter is saved in the $path_inf_wan1."/web" internal configuration memory without any regex checking. And in the IPTWAN_build_command function of the iptwan.php source code, the data in $path_inf_wan1."/web" is used with the iptables command without any regex checking. A vulnerable /HNAP1/SetRouterSettings XML message could have shell metacharacters in the RemotePort element such as the `telnetd` string.
CVSS metrics
2 scores · 1 source · 2 versionsEPSS trend
Probability
41.61%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
0.00 pp
From 41.61% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundCve
Maturity: poc
Weaknesses
CWE · root causeAffected systems
D-link2 products
- dir-818l\(w\)_firmware2.05.b03
- dir-822_firmware202krb06
1 vendor · 2 products
References
1 links- github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990X Refsource MISCExploitThird Party Advisory