Security Advisory

CVE-2019-16920: D-Link PingTest Unauthenticated RCE

Last updated:
  • CVE-2019-16920

CVE-2019-16920 is an unauthenticated command injection in the PingTest function of legacy D-Link routers and access points: /apply_sec.cgi skips the login check, and a newline in the ping address runs commands as root. NVD scores it 9.8 and CISA lists it in KEV. All 13 models D-Link names are end of life with no fix; replace them.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

100.0%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2019-16920 · Source: NVD

Affected components

ComponentCPEVersion range
D-Link DIR-655 (Rev. Cx)cpe:2.3:o:dlink:dir-655_firmware:*:*:*:*:*:*:*:*Firmware 3.02b05 and older (D-Link SAP10124, NVD); end of life, no fix
D-Link DIR-866L (Rev. Ax)cpe:2.3:o:dlink:dir-866l_firmware:*:*:*:*:*:*:*:*Firmware 1.03b04 and older (D-Link SAP10124, NVD); end of life, no fix
D-Link DHP-1565 (Rev. Ax)cpe:2.3:o:dlink:dhp-1565_firmware:*:*:*:*:*:*:*:*Firmware 1.01 and older (D-Link SAP10124, NVD); end of life, no fix
D-Link DIR-652 (Rev. Bx, non-US)cpe:2.3:o:dlink:dir-652_firmware:-:*:*:*:*:*:*:*Firmware 2.00B40 and older (D-Link SAP10124); end of life, no fix
D-Link DAP-1533, DIR-615 (Rev. Ix), DIR-825 (Rev. Cx), DIR-835, DIR-855L, DIR-862 (non-US)—DAP-1533 1.02B, DIR-615 9.04NAb02, DIR-825 3.02, DIR-835 104b02Beta01, DIR-855L 1.03b01, DIR-862 1.02 and older (D-Link SAP10124; NVD CPEs carry no version); end of life, no fix
D-Link DGL-5500, DIR-130, DIR-330—DGL-5500 1.13b04, DIR-130 1.23b20, DIR-330 1.23b18 and older (D-Link SAP10124; not in NVD's CPE list); end of life, no fix

What does this mean for affected devices?

NVD describes unauthenticated remote code execution in D-Link products such as the DIR-655C, DIR-866L, DIR-652 and DHP-1565, triggered by arbitrary input to a "PingTest" CGI, later also found in the DIR-855L, DAP-1533, DIR-862L, DIR-615, DIR-835 and DIR-825. 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 2019-09-27 (NVD, CVE record).

How does the flaw work?

CERT/CC's VU#766427 explains the two bugs: /apply_sec.cgi, served by the /www/cgi/ssi binary, is exposed to unauthenticated users, and the ping_ipaddr argument of the ping_test action does not handle newline characters, so anything after a newline is executed with root privileges. CERT/CC adds that the request can come from a specially crafted web page that a user views. Fortinet's FortiGuard Labs found it and published its analysis on 3 October 2019: it reported the bug to D-Link on 22 September 2019, and D-Link confirmed on 25 September that the products were end of life.

Which models are affected and is there a fix?

D-Link's SAP10124, published on 27 September 2019 and updated on 19 November 2019, lists firmware by model. US products: DAP-1533 Rev. A 1.02B, DGL-5500 Rev. A 1.13b04, DIR-130 Rev. A 1.23b20, DIR-330 Rev. A 1.23b18, DIR-615 Rev. I 9.04NAb02, DIR-655 Rev. C 3.02b05, DIR-825 Rev. C 3.02, DIR-835 Rev. A 104b02Beta01, DIR-855L Rev. A 1.03b01, DIR-866L Rev. A 1.03b04 and DHP-1565 Rev. A 1.01, each "and below". Non-US: DIR-652 Rev. B 2.00B40 and DIR-862 Rev. A 1.02. D-Link says all of them have reached end of life or end of support and will not be fixed; it recommends retiring them, and for US owners who keep one running, the latest firmware from legacy.us.dlink.com, a unique admin password changed often, and Wi-Fi encryption. CERT/CC's solution is the same: replace affected devices. Until then, keep the web interface off the internet (BOD 23-02 guide). The root cause is covered in how to fix command injection in embedded firmware.

Is CVE-2019-16920 exploited?

Yes. CISA added it to the KEV catalog on 2022-03-25 as "D-Link Multiple Routers Command Injection Vulnerability", due 2022-04-15, with the required action "The impacted product is end-of-life and should be disconnected if still in use." Known ransomware campaign use is Unknown. It is listed as of 2026-11-24 (catalog version 2026.11.23) (CISA KEV). FIRST EPSS gives it 0.99996, the 99.99th percentile, in the 2026-11-23 dataset (FIRST EPSS). Related D-Link injections in KEV: CVE-2018-6530 (soap.cgi) and CVE-2019-17621 (DIR-859 UPnP).

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: unauthenticated RCE in D-Link DIR-655C, DIR-866L, DIR-652, DHP-1565 via a 'PingTest' CGI; later also DIR-855L, DAP-1533, DIR-862L, DIR-615, DIR-835, DIR-825; [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-655 <=3.02b05, dir-866l <=1.03b04, dhp-1565 <=1.01, dir-652/dir-855l/dap-1533/dir-862l/dir-615/dir-835/dir-825 no version; published 2019-09-27; status Analyzed; read 2026-11-24. — NVD
  • D-Link SAP10124 (published 27 September 2019, updated 19 November 2019): Fortinet (Thanh Nguyen) disclosure FG-VD-19-117 for DIR-866, DIR-655, DHP-1565, DIR-652; second researcher on 23 October 2019 added DAP-1533, DGL-5500, DIR-130, DIR-330, DIR-615, DIR-825, DIR-835, DIR-855L, DIR-862; firmware: DAP-1533 Ax 1.02B, DGL-5500 Ax 1.13b04, DIR-130 Ax 1.23b20, DIR-330 Ax 1.23b18, DIR-615 Ix 9.04NAb02, DIR-655 Cx 3.02b05, DIR-825 Cx 3.02, DIR-835 Ax 104b02Beta01, DIR-855L Ax 1.03b01, DIR-866L Ax 1.03b04, DHP-1565 Ax 1.01, non-US DIR-652 Bx 2.00B40, DIR-862 Ax 1.02, each and below; all EoL/EoS, no support or development; recommends retiring; US users who continue: latest firmware from legacy.us.dlink.com, change unique password often, Wi-Fi encryption. — D-Link
  • CERT/CC VU#766427 (published 2019-10-23): /apply_sec.cgi dispatched by /www/cgi/ssi exposed to unauthenticated users; ping_ipaddr of ping_test action mishandles newlines; commands run with root privileges; can result from viewing a crafted web page; devices DIR-655, DIR-866L, DIR-652, DHP-1565, DIR-855L, DAP-1533, DIR-862L, DIR-615, DIR-835, DIR-825 no longer supported; solution replace affected devices. — CERT/CC
  • Fortinet FortiGuard Labs blog: vulnerability in latest firmware of DIR-655, DIR-866L, DIR-652, DHP-1565; products EOL; timeline reported 22 September 2019, D-Link confirmed 23 September, confirmed EOL 25 September, public disclosure 3 October 2019; recommends upgrading to a new device. — Fortinet
  • CVE record: state PUBLISHED, CNA MITRE. — CVE.org
  • CISA KEV catalog 2026.11.23: dateAdded 2022-03-25, due 2022-04-15, required action 'The impacted product is end-of-life and should be disconnected if still in use.', knownRansomwareCampaignUse Unknown, CWE-78; checked 2026-11-24. — CISA KEV
  • EPSS 0.99996, percentile 0.99989, dataset 2026-11-23, read 2026-11-24. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. D-Link SAP10124: CVE-2019-16920 unauthenticated remote code execution (13 models)
  3. CERT/CC VU#766427: Multiple D-Link routers vulnerable to remote command execution
  4. Fortinet FortiGuard Labs: D-Link routers found vulnerable to RCE
  5. CVE.org record CVE-2019-16920 (CNA: MITRE)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which D-Link devices are affected by CVE-2019-16920?

D-Link lists 13 models: DAP-1533, DGL-5500, DHP-1565, DIR-130, DIR-330, DIR-615 Rev. I, DIR-655 Rev. C, DIR-825 Rev. C, DIR-835, DIR-855L and DIR-866L in the US, plus the non-US DIR-652 Rev. B and DIR-862, each up to a named firmware version (per D-Link SAP10124).

Is there a firmware update for CVE-2019-16920?

No. D-Link says every listed model is end of life or end of support and will not be fixed, and recommends retiring them. CERT/CC's solution is to replace affected devices, and CISA's required action is to disconnect them (per D-Link SAP10124, CERT/CC VU#766427 and CISA KEV).

Does CVE-2019-16920 need a password?

No. The /apply_sec.cgi script is reachable without authentication, and the injected command runs as root. CERT/CC notes the request can also be triggered by a crafted web page that a user views (per CERT/CC VU#766427).

Is CVE-2019-16920 exploited in the wild?

Yes. CISA added it to KEV on 2022-03-25, and it is listed as of 2026-11-24 (catalog version 2026.11.23) with ransomware use marked Unknown. FIRST EPSS gives it 0.99996, the 99.99th percentile, in the 2026-11-23 dataset (per CISA KEV and FIRST EPSS).