What is the D-Link DNS-320?
The D-Link DNS-320 is a two-bay Network-Attached Storage (NAS) device that reached end-of-life status and no longer receives security updates from D-Link. The DNS-320 runs an embedded Linux-based OS and exposes a web management interface for NAS administration including user management, storage configuration, and system settings. The system_mgr.cgi component handles system management operations including reboot, firmware management, and system configuration. NAS devices like the DNS-320 frequently contain sensitive business data and are often left deployed long past their support lifecycle because replacing storage infrastructure requires effort and data migration.
Overview
CVE-2020-25506 is an unauthenticated OS command injection vulnerability (CWE-78) in the D-Link DNS-320 NAS device's system_mgr.cgi component. User-supplied input is passed to shell commands without sanitization, enabling an unauthenticated remote attacker to execute arbitrary OS commands on the device. D-Link confirmed the DNS-320 is end-of-life and will not receive a security patch. CISA added it to KEV in November 2021, reflecting active exploitation of deployed EOL devices that cannot be patched and must be replaced or isolated.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
| D-Link DNS-320 (all firmware versions) | Yes | No patch — EOL product; replace or isolate |
Technical Details
- Root cause: OS command injection (CWE-78) in
system_mgr.cgi— the system management CGI script passes user-controlled HTTP parameters directly to shell commands (via system(), popen(), or equivalent) without sanitizing shell metacharacters; an attacker can inject;,&&, or|followed by arbitrary commands - Unauthenticated access: The CGI script does not require authentication before processing the command injection vulnerability — any network-accessible attacker can exploit without credentials
- Root code execution: D-Link NAS management processes run as root; command injection via system_mgr.cgi executes commands with full root access, allowing data exfiltration, ransomware deployment, botnet recruitment, or persistent backdoor installation
- EOL product risk: D-Link's refusal to patch EOL devices is consistent with industry practice but leaves thousands of deployed devices permanently vulnerable; DNS-320 devices in use when discovered cannot be remediated through software updates and require physical replacement
- Botnet targeting: Internet-exposed NAS devices running EOL firmware are actively targeted by IoT botnets (Mirai variants, Moobot) that scan for CGI command injection vulnerabilities on ports 80 and 8080; compromised NAS devices are recruited for DDoS infrastructure or cryptocurrency mining
Discovery
Independently discovered and reported to D-Link in late 2020. D-Link confirmed the EOL status of the DNS-320 and declined to release a patch. CISA's November 2021 KEV addition confirms active exploitation of deployed DNS-320 devices in production environments.
Exploitation Context
EOL D-Link NAS devices including the DNS-320 are persistently targeted because many remain in production environments years after support ends, their firmware versions are predictable, and command injection exploit code is trivially developed and widely shared. CISA's KEV listing of EOL devices signals that organizations are expected to replace — not patch — vulnerable equipment. DNS-320 devices exposed to the internet are almost certainly compromised. Even intranet-connected devices face risk from internal network lateral movement.
Remediation
- Replace the D-Link DNS-320 — no firmware patch exists; this is the only permanent remediation
- Immediately isolate any DNS-320 from internet exposure: remove port forwarding rules, disable UPnP, and firewall all external access to the device
- Backup all data stored on the DNS-320 to a separate, secure system before replacing the device
- If replacement is not immediately possible, block all network access to the DNS-320's management ports (80, 443, 8080) from all untrusted network segments
- Scan internal network for compromise indicators — DNS-320 devices may already be compromised if previously internet-exposed
- Consider network monitoring at the DNS-320's network segment for unusual outbound connections that would indicate botnet command-and-control or data exfiltration activity
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2020-25506 |
| Vendor / Product | D-Link — DNS-320 Device |
| NVD Published | 2021-02-02 |
| NVD Last Modified | 2025-11-07 |
| CVSS 3.1 Score | 9.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Severity | CRITICAL |
| CWE | CWE-78 find similar ↗ |
| CISA KEV Added | 2021-11-03 |
| CISA KEV Deadline | 2022-05-03 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2020-09-12 | Vulnerability discovered and reported |
| 2021-02-02 | CVE published; D-Link confirms no patch for EOL DNS-320 |
| 2021-11-03 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2022-05-03 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| D-Link Security Advisory SAP10205 | Vendor Advisory |
| NVD — CVE-2020-25506 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |