Security Advisory

CVE-2018-6530: D-Link DIR-8xxL soap.cgi Command Injection

Last updated:
  • CVE-2018-6530

CVE-2018-6530 is an OS command injection in soap.cgi, the SOAP handler of D-Link DIR-860L, DIR-865L, DIR-868L and DIR-880L routers: the service parameter reaches a shell, so a crafted request runs commands. NVD scores it 9.8 and CISA KEV marks known ransomware use. The listed models are past D-Link support; disconnect them.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

96.7%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2018-6530 · Source: NVD

Affected components

ComponentCPEVersion range
D-Link DIR-860L (Rev. A)cpe:2.3:o:dlink:dir-860l_firmware:*:*:*:*:*:*:*:*Firmware 1.10b04 and earlier (NVD); last day of support 5/1/2018 (D-Link legacy site)
D-Link DIR-865L (Rev. A)cpe:2.3:o:dlink:dir-865l_firmware:*:*:*:*:*:*:*:*Firmware 1.08b01 and earlier (NVD); last day of support 2/1/2016 (D-Link legacy site)
D-Link DIR-868L (Rev. A)cpe:2.3:o:dlink:dir-868l_firmware:*:*:*:*:*:*:*:*Firmware 1.12b04 and earlier (NVD); last day of support 11/1/2016 (D-Link legacy site)
D-Link DIR-880L (Rev. A)cpe:2.3:o:dlink:dir-880l_firmware:*:*:*:*:*:*:*:*Firmware 1.08b04 and earlier (NVD); last day of support 1/1/2019 (D-Link legacy site)
D-Link DIR-818LW and DIR-860L (Rev. B), incomplete fix tracked as CVE-2018-20114—DIR-818LW all B revisions 2.05.B03 and older, fixed 2.06B01Beta; DIR-860L all B revisions 2.03.B03 and older, fixed 2.04B04Beta01 (D-Link SAP10105, which CISA names as the fix for this KEV entry)

What does this mean for affected devices?

NVD describes an "OS command injection vulnerability in soap.cgi (soapcgi_main in cgibin)" in D-Link DIR-880L firmware 1.08B04 and earlier, DIR-868L FW112b04 and earlier, DIR-865L 1.08.B01 and earlier and DIR-860L FW110b04 and earlier, which "allows remote attackers to execute arbitrary OS commands via the service parameter." NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), with CVSS v2 10.0; CISA ADP gives the same 9.8. Both classify it as CWE-78. MITRE published the record on 2018-03-06 (NVD, CVE record). The researcher's write-up lists it next to three XSS bugs (CVE-2018-6527 to CVE-2018-6529) on the same "cloud" routers and labels the injection LAN-side on revisions A and B.

Which firmware fixes CVE-2018-6530?

NVD links D-Link patch-note files for DIR-860L Rev. A 1.11B01, DIR-865L 1.10B01, DIR-868L 1.20B01 and DIR-880L 1.08B06; those ftp2.dlink.com links no longer resolve. CISA's KEV entry points instead to D-Link SAP10105 and says the fix under CVE-2018-20114 "properly patches" this entry. SAP10105, published on 4 January 2019, covers CVE-2018-20114, which the notice, quoting the CVE text, describes as an incomplete fix for CVE-2018-6530 (an && substring in the same service parameter). It lists DIR-818LW (all B revisions, colour variants included) at 2.05.B03 and older, fixed in 2.06B01Beta, and DIR-860L (all B revisions) at 2.03.B03 and older, fixed in 2.04B04Beta01. D-Link's position there is that the injection is reachable only from the LAN side, through the web configuration, not directly from the WAN.

Are these routers still supported?

No. D-Link's legacy products site, where it lists products that "have ceased their development and are no longer supported", gives last days of support of 5/1/2018 for the DIR-860L, 2/1/2016 for the DIR-865L, 11/1/2016 for the DIR-868L and 1/1/2019 for the DIR-880L, and recommends retiring them. CISA's required action matches: apply updates if the device is still supported, and disconnect it if it has reached end of life. Our guide on fixing command injection in embedded firmware covers the root cause.

Is CVE-2018-6530 exploited?

Yes. CISA added it to the KEV catalog on 2022-09-08 as "D-Link Multiple Routers OS Command Injection Vulnerability", due 2022-09-29, and marks known ransomware campaign use as Known. It is listed as of 2026-11-24 (catalog version 2026.11.23) (CISA KEV). FIRST EPSS gives it 0.96682, the 99.89th percentile, in the 2026-11-23 dataset (FIRST EPSS). Related D-Link injections in KEV: CVE-2015-2051 (DIR-645 HNAP SOAPAction), CVE-2019-17621 (DIR-859 UPnP) and CVE-2019-16920 (PingTest).

How to fix this class of issueThis advisory's weakness class is Command injection. Our practical guide covers how to detect, fix, verify and disclose it: How to fix command injection in embedded firmware.

Evidence

  • NVD: OS command injection in soap.cgi (soapcgi_main in cgibin) in DIR-880L 1.08B04 and previous, DIR-868L FW112b04 and previous, DIR-865L 1.08.B01 and previous, DIR-860L FW110b04 and previous, via the service parameter; [email protected] Primary CVSS v3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H and v2 10.0; CISA ADP 9.8; CWE-78; CPEs dir-860l <=1.10b04, dir-865l <=1.08b01, dir-868l <=1.12b04, dir-880l <=1.08b04; references to ftp2.dlink.com patch notes DIR-860L REVA 1.11B01, DIR-868L REVA 1.20B01, DIR-865L REVA 1.10B01, DIR-880L REVA 1.08B06 (FTP returned 550 on 2026-11-24); published 2018-03-06; status Analyzed; read 2026-11-24. — NVD
  • D-Link SAP10105 (published 4 January 2019): CVE-2018-20114, LAN-side unauthenticated command execution in soap.cgi via '&&' in the service parameter, incomplete fix for CVE-2018-6530; reporter MinGeun Kim; D-Link says LAN-side only; DIR-818LW (white, /D, /R, /T) all B revisions v2.05.B03 and lower fixed v2.06B01Beta; DIR-860L all B revisions v2.03.B03 and lower fixed v2.04B04Beta01. — D-Link
  • TheBeeMan write-up: DIR-880 REVA / DIR-868 REVA / DIR-865 / DIR-860 REVA, firmware DIR-880L_REVA_FIRMWARE_PATCH_1.08B04, DIR868LA1_FW112b04, DIR-865L_REVA_FIRMWARE_PATCH_1.08.B01, DIR860LA1_FW110b04; XSS CVE-2018-6527/6528/6529; 'LAN - revA/B - OS command injection - CVE-2018-6530'. — Researcher advisory (GitHub)
  • D-Link legacy products list: resources ceased development, no longer supported, recommends retiring; last day of support DIR-860L 5/1/2018, DIR-865L 2/1/2016, DIR-868L 11/1/2016, DIR-880L 1/1/2019. — D-Link (legacy products)
  • CVE record: state PUBLISHED, CNA MITRE. — CVE.org
  • CISA KEV catalog 2026.11.23: dateAdded 2022-09-08, due 2022-09-29, knownRansomwareCampaignUse Known, CWE-78; required action: D-Link advisory says the fix under CVE-2018-20114 properly patches CVE-2018-6530; apply updates if supported, disconnect if end-of-life; notes cite SAP10105; checked 2026-11-24. — CISA KEV
  • EPSS 0.96682, percentile 0.99886, dataset 2026-11-23, read 2026-11-24. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. D-Link SAP10105: DIR-860L Rev. Bx and DIR-818LW Rev. Bx, CVE-2018-20114 LAN-side unauthenticated command execution
  3. TheBeeMan: Pwning multiple D-Link routers via the SOAP protocol
  4. D-Link legacy products (last day of support)
  5. CVE.org record CVE-2018-6530 (CNA: MITRE)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which D-Link routers are affected by CVE-2018-6530?

NVD lists the DIR-860L up to 1.10b04, DIR-865L up to 1.08b01, DIR-868L up to 1.12b04 and DIR-880L up to 1.08b04. The follow-up CVE-2018-20114, an incomplete fix, adds the DIR-818LW and DIR-860L hardware revision B (per NVD and D-Link SAP10105).

Is there a fix for CVE-2018-6530?

CISA points to D-Link SAP10105: DIR-818LW Rev. B 2.06B01Beta and DIR-860L Rev. B 2.04B04Beta01 fix the CVE-2018-20114 variant. The DIR-860L, DIR-865L, DIR-868L and DIR-880L are past their last day of support, and CISA says to disconnect end-of-life units (per CISA KEV, D-Link SAP10105 and the D-Link legacy site).

Has CVE-2018-6530 been used by ransomware?

CISA's KEV entry marks known ransomware campaign use as Known. CISA added it on 2022-09-08, and it is listed as of 2026-11-24 (catalog version 2026.11.23). FIRST EPSS gives it 0.96682, the 99.89th percentile, in the 2026-11-23 dataset (per CISA KEV and FIRST EPSS).

Can CVE-2018-6530 be exploited from the internet?

NVD scores it with a network vector and no privileges, CVSS v3.1 9.8. The researcher and D-Link describe the soap.cgi injection as LAN-side, so limit who can reach the router and its web interface until it is replaced (per NVD, the researcher write-up and D-Link SAP10105).