In the /HNAP1/SetRouterSettings message, the RemotePort parameter is vulnerable, and the…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:d-link:dir-818lw_firmware:2.05.b03:*:*:*:*:*:*:* | 2.05.b03 | Vulnerable | D-Link |
| cpe:2.3:h:dlink:dir-818lw:-:*:*:*:*:*:*:* | not specified by NVD | Running on | D-Link Japan K.K. |
| cpe:2.3:o:d-link:dir-822_firmware:202krb06:*:*:*:*:*:*:* | 202krb06 | Vulnerable | D-Link |
| cpe:2.3:h:dlink:dir-822:-:*:*:*:*:*:*:* | not specified by NVD | Running on | D-Link Japan K.K. |
- cpe:2.3:o:d-link:dir-818lw_firmware:2.05.b03:*:*:*:*:*:*:* Versions 2.05.b03 Vulnerable ·D-Link
- cpe:2.3:h:dlink:dir-818lw:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·D-Link Japan K.K.
- cpe:2.3:o:d-link:dir-822_firmware:202krb06:*:*:*:*:*:*:* Versions 202krb06 Vulnerable ·D-Link
- cpe:2.3:h:dlink:dir-822:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·D-Link Japan K.K.
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2018-19986
- 2026-10-03 Alias added: GHSA-3phf-fpc4-v2qv
References
More D-Link Dir-818lw Firmware vulnerabilities
- TI-2018-14169 D-Link DIR-822 Rev.B 202KRb06, DIR-822 Rev.C 3.10B06, DIR-860L Rev.B 2.03.B03, DIR-868L… CVSS 3.0CRITICAL 9.8
Sources
- CVE-2018-19986 · CVE Program
- CVE-2018-19986 · NVD
- FIRST EPSS
- GHSA-3phf-fpc4-v2qv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences