CVE-2018-19986: In the /HNAP1/SetRouterSettings message, the RemotePort parameter is vulnerable, and the vulnerability affects
CVE-2018-19986 is a critical-severity flaw (CVSS 9.8) affecting dir-818lw firmware, dir-822 firmware. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 us
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 41.6% (top 1%) |
| CISA exploited list | No |
| Weakness | CWE-78 |
| Published | 2019-05-13 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2018-19986?
dir-818lw firmware: mitigate or apply the listed mitigation; dir-822 firmware: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2018-19986 being exploited?
CVE-2018-19986 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2018-19986 affect?
CVE-2018-19986 affects dir-818lw firmware, dir-822 firmware. Severity is critical (CVSS 9.8). 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 paramet
How urgent is CVE-2018-19986?
Priority 69/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action
Software pages
PHP vulnerabilities · D-Link vulnerabilities
Related CVEs
- CVE-2025-9003 LOW 3.5 MITIGATE A vulnerability has been found in D-Link DIR-818LW 1.04
- CVE-2025-7553 MEDIUM 4.7 UPGRADE A vulnerability classified as critical has been found in D-Link DIR-818LW up to 20191215
- CVE-2019-13482 HIGH 8.8 MITIGATE An issue was discovered on D-Link DIR-818LW devices with firmware 2.06betab01
- CVE-2019-13481 HIGH 8.8 MITIGATE An issue was discovered on D-Link DIR-818LW devices with firmware 2.06betab01
- CVE-2019-12787 HIGH 8.8 MITIGATE An issue was discovered on D-Link DIR-818LW devices from 2.05.B03 to 2.06B01 BETA