Back to CVE catalog
CVE-2018-19986

Command injection in D-Link DIR-818LW and DIR-822

Multiple products

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.0

9.8Critical
Published:
Updated:
EPSS:
41.606%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:d-linkdir-822 firmwareAffected versions:
202krb06Show full version range for dir-822 firmware
  • CPE applicability can depend on other products or environments. Consult the full source configuration.
Vendor:d-linkdir-818lw firmwareAffected versions:
2.05.b03Show full version range for dir-818lw firmware
  • CPE applicability can depend on other products or environments. Consult the full source configuration.

1–2 of 2 · Page 1 of 1

CVSS scores and metrics2
[email protected] · NVD (Primary)Primary9.8 / 10CriticalCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
[email protected] · NVD (Primary)10.0 / 10HighCVSS 2.0Details
Attack complexity
Low
Confidentiality
Complete
Integrity
Complete
Availability
Complete
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories4

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences