Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2018-19986: In the /HNAP1/SetRouterSettings message, the RemotePort parameter is vulnerable, and the vulnerability affects

69
This week
CRITICAL 9.8REMOTEMITIGATEMITIGATE

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 score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance41.6% (top 1%)
CISA exploited listNo
WeaknessCWE-78
Published2019-05-13
Last modified2026-06-17
Publisher (CNA): MITRE · Vendor: d-link

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

d-link dir-818lw firmware MITIGATE
Affected: 2.05.b03
Fixed in: no fixed release known
Safe to downgrade to: a release before 2.05.b03
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
d-link dir-822 firmware MITIGATE
Affected: 202krb06
Fixed in: no fixed release known
Safe to downgrade to: a release before 202krb06
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
Fedora ELN · fuse-sshfs · FIXED · 3.7.6-3.eln159 · FEDORA-2026-bcb7be7c5c · source
sudo dnf upgrade --advisory=FEDORA-2026-bcb7be7c5c
Fedora 46 · python-odata-query · FIXED · 0.10.1-1.fc46 · FEDORA-2026-eab44dc513 · source
sudo dnf upgrade --advisory=FEDORA-2026-eab44dc513

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
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

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.