CVE-2018-6530 — D-Link Multiple Routers OS Command Injection Vulnerability

CVE-2018-6530

D-Link SOAP Interface Command Injection — A Long-Running IoT Botnet Target

D-Link is one of the largest consumer and small-business networking hardware vendors, with routers deployed in millions of homes and small offices worldwide. Consumer routers of this class are a perennial target for internet-scanning botnets: they are numerous, frequently left with default settings and unpatched firmware for years, and — because they sit at the network edge — compromising one gives an attacker both an internet-routable device to abuse (for DDoS, proxying, or further scanning) and a foothold into whatever local network sits behind it.

Overview

CVE-2018-6530 is a critical, unauthenticated OS command injection vulnerability affecting multiple D-Link router models. A remote attacker with no credentials can send a crafted request to the device's management interface that results in execution of arbitrary operating system commands, granting them full control over the router.

Technical Details

The vulnerability is classified under CWE-78 (OS command injection): a parameter passed to the router's management or SOAP-based configuration interface is passed insufficiently sanitized into a system-level command execution call, allowing an attacker to append additional shell commands of their choosing. Because the CVSS vector shows no privileges or user interaction required, exploitation is possible with a single network request against any reachable, vulnerable device — the hallmark of a bug well-suited to mass, automated scanning and exploitation across the internet.

Discovery

D-Link addressed this vulnerability through its security advisory process (SAP10105). The vendor has stated that the underlying fix is tracked under a separate CVE (CVE-2018-20114), and that applying that fix resolves this KEV entry as well. No specific third-party researcher credit is confidently documented for the original discovery.

Exploitation Context

Consumer router command injection vulnerabilities of this type have a long history of exploitation by IoT botnet operators — Mirai and its many derivatives have repeatedly targeted D-Link and similar consumer router lines via SOAP/HNAP and other management-interface command injection bugs to recruit devices into DDoS botnets. CISA's KEV listing confirms active exploitation of this specific CVE, and its ransomwareUse: true marker reflects that compromised routers have also been leveraged as part of broader intrusion and ransomware-adjacent campaigns, not just DDoS botnet recruitment.

Remediation

  1. Identify all D-Link router models in use and confirm whether the fix (tracked under CVE-2018-20114) has been applied, per D-Link's SAP10105 advisory.
  2. If the affected model has reached end-of-life and no longer receives security updates, replace it with a currently supported, actively patched device.
  3. Disable remote/WAN-side access to the router's management interface, restricting configuration access to the local trusted network only.
  4. Change default administrative credentials immediately and disable UPnP or other unnecessary exposed services on the device.
  5. Monitor for signs of compromise — unexpected outbound traffic, DNS changes, or unfamiliar devices on the network — consistent with router-level botnet recruitment.

Key Details

PropertyValue
CVE ID CVE-2018-6530
Vendor / Product D-Link — Multiple Routers
NVD Published2018-03-06
NVD Last Modified2025-11-07
CVSS 3.1 Score9.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SeverityCRITICAL
CWE CWE-78 find similar ↗
CISA KEV Added2022-09-08
CISA KEV Deadline2022-09-29
Known Ransomware Use ⚠️ Yes

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-09-29. The vendor D-Link published an advisory stating the fix under CVE-2018-20114 properly patches KEV entry CVE-2018-6530. If the device is still supported, apply updates per vendor instructions. If the affected device has since entered its end-of-life, it should be disconnected if still in use.

Timeline

DateEvent
2018-03-06CVE published
2018D-Link ships a fix, later tracked under the related CVE-2018-20114, which the vendor states properly resolves this vulnerability
2022-09-08Added to CISA Known Exploited Vulnerabilities catalog
2022-09-29CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2018-6530 Vulnerability Database
CISA KEV Catalog Entry US Government
D-Link Security Advisory SAP10105 Vendor Advisory