# CVE-2018-19986

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2019-05-13 · Modified: 2024-08-05
- Record: https://cvemate.com/vulnerability/CVE-2018-19986 · JSON: https://cvemate.com/vulnerability/CVE-2018-19986/json

## 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.
```

## Signals

- CVSS: 10 high (v2.0, NVD) AV:N/AC:L/Au:N/C:C/I:C/A:C
- EPSS: 41.606%, percentile 98.713%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- d-link dir-818l\\(w\\)\_firmware: 2.05.b03
- d-link dir-822\_firmware: 202krb06

## References

- <https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990>

---

Data as of 2026-12-05T08:48:44.521Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
