CVE-2023-25280 — D-Link DIR-820 Router OS Command Injection Vulnerability

CVE-2023-25280

D-Link DIR-820L Router — Pre-Auth OS Command Injection via ping_addr Parameter Escalates to Root; EOL Device — No Patch Available; KEV September 2024

D-Link DIR-820L is a consumer and small office wireless router produced by D-Link that has reached end-of-life and end-of-support. Like many SOHO (small office/home office) routers, the DIR-820L runs an embedded Linux-based firmware with a web-based management interface that handles router configuration including network diagnostics. SOHO routers are frequent botnet targets because they are always internet-connected, rarely receive firmware updates after reaching EOL, run continuously with no endpoint security, and provide a useful network relay point for attackers. D-Link routers have been repeatedly incorporated into Mirai and other botnets through exploitation of command injection vulnerabilities.

Overview

CVE-2023-25280 is a pre-authentication OS command injection vulnerability in the D-Link DIR-820L router's diagnostic ping handler. An unauthenticated remote attacker can send a crafted HTTP request with a malicious ping_addr parameter to the ping.ccp endpoint, injecting OS commands that execute as root on the router's embedded Linux OS. D-Link confirmed the DIR-820L is end-of-life and will not receive a patch — CISA's required action is to retire and replace the device. CISA added it to KEV in September 2024, 18 months after initial CVE publication, confirming ongoing exploitation of these long-unpatched devices.

Affected Versions

Product Status
D-Link DIR-820L End-of-life — no patch available; device must be retired and replaced

D-Link's advisory (SAP10358) confirms no firmware update will be issued for this vulnerability.

Technical Details

CWE-78 (Improper Neutralization of Special Elements used in an OS Command). The DIR-820L web interface includes a diagnostic tool for testing network connectivity via ping. The ping.ccp CGI script accepts a ping_addr parameter specifying the IP address or hostname to ping. The parameter is passed directly to an OS-level shell command without input sanitization.

By injecting shell metacharacters into the ping_addr value (e.g., ; malicious_command #), an unauthenticated attacker can execute arbitrary OS commands on the router. Because the web server process on embedded Linux routers typically runs as root, the injected commands execute with full root privileges on the embedded Linux OS.

Root access on the router enables:

  • Modifying DNS settings to redirect user traffic to attacker-controlled servers
  • Installing persistent backdoors or botnet malware in persistent flash storage
  • Using the router as a proxy/relay for further attacks
  • Capturing unencrypted network traffic passing through the device

Discovery

Identified and publicly disclosed by security researchers in March 2023 through CVE publication. D-Link confirmed the EOL status of the DIR-820L and declined to issue a patch.

Exploitation Context

The 18-month gap between initial CVE publication (March 2023) and CISA KEV addition (September 2024) reflects the sustained exploitation lifecycle of EOL SOHO router vulnerabilities. D-Link devices — particularly EOL models — are systematically incorporated into Mirai botnet variants and other malware campaigns that maintain large lists of router vulnerabilities to exploit in ongoing scanning campaigns.

EOL routers with no available patches present a structural problem: the only remediation is device retirement. Many small businesses and home offices continue running EOL routers indefinitely, providing a persistent attack surface for botnet operators. CISA's unusually strong required action ("discontinue utilization") reflects the reality that no technical mitigation is available.

Remediation

  1. Retire and replace the D-Link DIR-820L immediately — no firmware patch exists or will be released. Do not continue using this device in any network.
  2. Replace with a supported router from any major vendor and ensure automatic firmware updates are enabled.
  3. If immediate replacement is not possible as a temporary measure: disable remote management access (ensure the router management interface is not accessible from the WAN/internet side) and consider VLANing the device off from sensitive internal network segments.
  4. Check any network monitoring logs for unusual outbound connections from the router's IP — evidence of botnet activity or traffic redirection.
  5. After replacing the device, audit network settings (DNS servers, DHCP configuration) to ensure no malicious changes were made while the vulnerable device was in operation.

Key Details

PropertyValue
CVE ID CVE-2023-25280
Vendor / Product D-Link — DIR-820 Router
NVD Published2023-03-16
NVD Last Modified2025-11-03
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 Added2024-09-30
CISA KEV Deadline2024-10-21
Known Ransomware Use No

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: 2024-10-21. The impacted product is end-of-life (EoL) and/or end-of-service (EoS). Users should discontinue utilization of the product.

Timeline

DateEvent
2023-03-16CVE-2023-25280 published — D-Link DIR-820L pre-auth OS command injection via ping_addr parameter
2023-03-16D-Link publishes SAP10358 confirming no patch will be issued — DIR-820L is end-of-life
2024-09-30CISA adds CVE-2023-25280 to Known Exploited Vulnerabilities catalog — active exploitation 18 months after disclosure
2024-10-21CISA BOD 22-01 remediation deadline (retire/replace required per CISA guidance)

References

ResourceType
D-Link Security Announcement SAP10358 — DIR-820L Vendor Advisory
NVD — CVE-2023-25280 Vulnerability Database
CISA KEV Catalog Entry US Government