CVE-2018-19986: OS Command Injection

Published May 13, 2019
·
Updated

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

4 affected components
D-Link Dir-818lw Firmware=2.05.b03
Dlink Dir-818lw
D-Link Dir-822 Firmware=202krb06
Dlink Dir-822

Event History

May 13, 2019
CVE Published
via MITRE·01:22 PM
Data Sourced
via MITRE·01:22 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

How severe is CVE-2018-19986?

CVE-2018-19986 has a severity rating of 9.8 (critical).

3

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.

4

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.

5

What is the CWE of CVE-2018-19986?

The CWE (Common Weakness Enumeration) of CVE-2018-19986 is 78.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203