CRITICAL

CVE-2018-19986

CVSS v3

9.8

CRITICAL

EPSS Score

54.9%

exploit probability

CISA KEV

No

known exploited

Exploitation

SSVC status

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.

Technical details

Published
5/13/2019

Frequently asked questions

What is CVE-2018-19986?

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.

Is CVE-2018-19986 actively exploited?

Active exploitation of CVE-2018-19986 has not been confirmed. The EPSS score is 54.9%, indicating the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-19986?

CVE-2018-19986 has a CVSS v3 base score of 9.8 (CRITICAL severity).

Is CVE-2018-19986 affecting your environment?

Use isMalicious to check if any of your IPs or domains are associated with this vulnerability's IOCs.