CWE
78
Advisory Published
Updated

CVE-2018-19986: OS Command Injection

First published: Mon 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 $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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
D-link Dir-818lw Firmware=2.05.b03
Dlink Dir-818lw
D-link Dir-822 Firmware=202krb06
Dlink Dir-822

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

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.

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203