CVE-2018-19986D-link Dir-818lw Firmware
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · D-link · D-link Dir-818lw Firmware We alert you by email or Slack (account required).
- Priority
- 78
- CVSS 3.0
- 9.8
- EPSS
- 41.6% probability of exploitation in 30 days · percentile 99
- Auth required
- No
- Published
- May 13, 2019
- Updated
- Jun 17, 2026
- Category
- Network & edge · Network appliance
- Weakness (CWE)
- CWE-78
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Dir-818lw Firmware.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| d-link | dir-818lw_firmware | 2.05.b03 |
| d-link | dir-822_firmware | 202krb06 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory