CVE-2018-19986
highpriority · attend · 54EPSS 0.416 · 99 %ileEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 9.8–10
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (5)
Products and version ranges known to be affected.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (4)
External citations — patches, advisories, analysis.
- https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2018-19986cnnvd
- https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990enisa_euvd
- https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan