CVE-2018-19986: OS Command Injection
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 $pathinfwan1."/web" internal configuration memory without any regex checking. And in the IPTWANbuildcommand function of the iptwan.php source code, the data in $pathinfwan1."/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.
Affected Software
Event History
Frequently Asked Questions
What is CVE-2018-19986?
CVE-2018-19986 is a vulnerability in the /HNAP1/SetRouterSettings message in D-Link DIR-818LW Rev.A 2.05.B03 and DIR-822 B1 202KRb06 devices where the RemotePort parameter is vulnerable.
How severe is CVE-2018-19986?
CVE-2018-19986 has a severity rating of 9.8 (critical).
Which software is affected by CVE-2018-19986?
D-Link DIR-818LW Rev.A 2.05.B03 and DIR-822 B1 202KRb06 devices are affected by CVE-2018-19986.
How can I fix CVE-2018-19986?
To fix CVE-2018-19986, it is recommended to update the firmware of the affected devices to the latest version provided by the manufacturer.
What is the CWE of CVE-2018-19986?
The CWE (Common Weakness Enumeration) of CVE-2018-19986 is 78.