← Vulnerability feed

Vulnerability record · CVE-2018-19986 · published 13 May 2019

CVE-2018-19986: D-link dir-818lw firmware os command injection vulnerability

D Link · Dir 818lw Firmware

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.

9.8 CVSS 3.0 Critical EPSS 42% · top 1.3% CWE-78 · OS command injection
9.8CVSS 3.0 base score, v2 10.0
42%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
2References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2018-19986 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2019-6258D-link dir-822 firmware classic buffer overflow vulnerabilityD-Link DIR-822 Rev.Bx devices with firmware v.202KRb06 and older allow a buffer overflow via long MacAddress data in a /HNAP1/SetClientInfo HNAP prot…EPSS 2.6%9.8CVE-2018-19987D-link dir-818lw firmware os command injection vulnerabilityD-Link DIR-822 Rev.B 202KRb06, DIR-822 Rev.C 3.10B06, DIR-860L Rev.B 2.03.B03, DIR-868L Rev.B 2.05B02, DIR-880L Rev.A 1.20B01_01_i3se_BETA, and DIR-8…EPSS 12%9.8CVE-2018-19989D-link dir-822 firmware os command injection vulnerabilityIn the /HNAP1/SetQoSSettings message, the uplink parameter is vulnerable, and the vulnerability affects D-Link DIR-822 Rev.B 202KRb06 and DIR-822 Rev…EPSS 5.5%9.8CVE-2018-19990D-link dir-822 firmware os command injection vulnerabilityIn the /HNAP1/SetWiFiVerifyAlpha message, the WPSPIN parameter is vulnerable, and the vulnerability affects D-Link DIR-822 B1 202KRb06 devices. In th…EPSS 5.1%8.6CVE-2026-111560Barracuda email security gateway 300 firmware os command injection vulnerabilityImproper neutralization of shell metacharacters in the timezone configuration field in certain Barracuda appliance products using common Barracuda co…KEVEPSS 9.1%9.8CVE-2026-116779Freeswitch command injection vulnerabilityFreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a software implementation tha…KEVEPSS 2.5%7.8CVE-2026-46300Linux kernel out-of-bounds write vulnerabilityIn the Linux kernel, the following vulnerability has been resolved: net: skbuff: preserve shared-frag marker during coalescing skb_try_coalesce() can…KEVEPSS 16%9.2CVE-2026-111497Google brotli unchecked return value vulnerabilityA buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli versions 1.0.3 through 1.2.0 on all platforms allows a remote…KEVEPSS 83%

Source: NIST National Vulnerability Database (record CVE-2018-19986), CISA KEV, FIRST EPSS (scores of 2026-11-13). This page is refreshed as NVD updates the record.