{"id":"CVE-2018-19986","published":"2019-05-13T13:22:05Z","modified":"2024-08-05T11:51:17Z","title":"In the /HNAP1/SetRouterSettings message, the RemotePort parameter is vulnerable, and the vulnerability affects D-Link…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The RemotePort parameter in the /HNAP1/SetRouterSettings message is vulnerable on D-Link DIR-818LW Rev.A 2.05.B03 and DIR-822 B1 202KRb06 devices, where the value is stored in internal configuration memory without regex validation and then passed unchecked to iptables by the IPTWAN_build_command function. An attacker who can send a crafted SetRouterSettings XML message containing shell metacharacters in the RemotePort element can inject commands into the iptables invocation, with the example given being a payload that starts telnetd.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-07T13:30:11Z"},"cvss":null,"epss":{"score":0.41606,"percentile":0.98688,"date":"2026-11-06","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2021-04-12","exploitedFirstSeen":"2021-04-12","ransomware":false,"evidence":[{"url":"https://unit42.paloaltonetworks.com/network-attack-trends-winter-2020/","date":"2021-04-12"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":1,"pulses":[{"name":"2022 UNIT 42 NETWORK THREAT TRENDS RESEARCH REPORT","url":"https://otx.alienvault.com/pulse/630e439ea98624c5bb1d4545","created":"2022-08-30"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2018-11653","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-11653","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2019-05-13","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2018-19986","provenance":"source"},{"date":"2021-04-12","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://unit42.paloaltonetworks.com/network-attack-trends-winter-2020/","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":55.4,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 2035 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.74,"detail":"percentile 0.9869"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":0.68,"detail":"1 pulse"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}