LiveActive security incident?Get immediate response
CVE Record

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

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This vulnerability affects specific D-Link router firmware. A router settings request can place unsafe input into internal configuration that is later used in a system firewall command, creating command-injection risk. The sources do not provide a CVSS score, vendor fix, or confirmed active exploitation.

Executive priority

Treat this as a targeted network-edge risk. Prioritize asset identification and management-plane restriction first, then confirm vendor-supported firmware or replacement options for affected routers.

Technical view

CVE-2018-19986 concerns /HNAP1/SetRouterSettings handling of the RemotePort parameter on D-Link DIR-818LW Rev.A 2.05.B03 and DIR-822 B1 202KRb06. The value is stored without regex validation and later consumed by iptwan.php in iptables command construction without validation, allowing shell metacharacter injection.

Likely exposure

Exposure is limited to environments running the named D-Link router models and firmware revisions. Risk depends on who can reach the HNAP router settings interface and whether administrative functions are exposed to untrusted networks.

Exploitation context

The source describes unsafe command construction and gives an example of malicious content, but the provided bundle does not show KEV listing, public exploitation in the wild, authentication requirements, or a complete attack path.

Researcher notes

The record gives a clear data-flow weakness from RemotePort storage to iptables command construction, but lacks CVSS, CWE mapping, patch details, authentication context, and exploitation telemetry. Avoid assuming broader D-Link coverage beyond the named models and firmware.

Mitigation direction

  • Inventory for DIR-818LW Rev.A 2.05.B03 and DIR-822 B1 202KRb06 devices.
  • Check D-Link support guidance for fixed firmware or replacement direction.
  • Restrict router administration and HNAP access to trusted management networks.
  • Disable unnecessary remote administration where operationally possible.
  • Replace unsupported affected devices if no vendor-supported fix exists.

Validation and detection

  • Confirm router model, hardware revision, and firmware version from asset records or admin UI.
  • Verify whether HNAP management endpoints are reachable from untrusted networks.
  • Review router and perimeter logs for unexpected HNAP settings activity.
  • Validate current firmware status against D-Link guidance before closing remediation.
  • Document compensating controls if replacement or firmware update is delayed.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2018-19986 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.