Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to D-Link NAS device
-
DeliverySend crafted HTTP request to /cgi-bin/app_mgr.cgi
-
ExploitManipulate f_dir parameter with oversized input
-
ExecutionTrigger stack-based buffer overflow in UPnP_AV_Server_Path_Del
-
ImpactExecute arbitrary code with device privileges
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
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. |
| Exploitation Conditions | Requires: network access (remote), low-privilege authentication. |
| Impact | Real-world exploitation risk is significant despite requiring authentication (PR:L). The CVSS vector shows network attack vector (AV:N), low complexity (AC:L), no user interaction required (UI:N), and high impact across confidentiality, integrity, and availability (C:H/I:H/A:H), yielding an 8.8 base score. Critically, publicly available exploit code exists (E:P status confirmed, GitHub repository linked in references), substantially lowering the barrier to exploitation. However, no CISA KEV listing suggests large-scale active exploitation has not been observed in critical infrastructure contexts. The SSVC framework would classify this as high technical impact (arbitrary code execution on network storage), low-to-moderate automatable potential (requires valid credentials but documented exploit simplifies automation), and exploitation status of POC-available. The requirement for low-privilege authentication provides minimal protection given common credential reuse, default passwords, and the exposed nature of NAS web interfaces. The vulnerability's age (affecting firmware through early 2026 but reported on legacy hardware) and D-Link's history of ending support for older NAS models suggests many deployments may remain permanently vulnerable. Organizations using affected models face realistic compromise risk from opportunistic attackers scanning for exposed NAS interfaces with weak credentials. |
| Exploit ScenarioDerived | An external attacker conducts reconnaissance scanning for D-Link NAS devices with exposed web interfaces, identifying vulnerable models through HTTP banner fingerprinting or login page characteristics. Using credential stuffing or exploiting default/weak passwords (satisfying the PR:L requirement), the attacker authenticates to the web management interface and navigates to the UPnP server configuration accessible via /cgi-bin/app_mgr.cgi. Leveraging the publicly available exploit code from GitHub, the attacker crafts a malicious HTTP request with an oversized f_dir parameter value designed to overflow the stack buffer in UPnP_AV_Server_Path_Del function, overwriting the return address to redirect execution to attacker-controlled shellcode. Successful exploitation grants the attacker arbitrary code execution with web server privileges, enabling installation of persistent backdoors, exfiltration of sensitive files stored on the NAS, lateral movement to other network resources accessible from the compromised device, or deployment of ransomware to encrypt stored data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 31, 2026
Stack-based buffer overflow in D-Link NAS devices enables remote code execution with high integrity impact for authenticated users. The vulnerability resides in the UPnP_AV_Server_Path_Del function within /cgi-bin/app_mgr.cgi, exploitable via manipulation of the f_dir parameter. With CVSS 8.8 (High), low attack complexity (AC:L), network accessibility (AV:N), and publicly available exploit code, this represents an elevated threat to approximately 20 legacy D-Link NAS models through firmware versions up to 20260205. No vendor-released patch identified at time of analysis, and many affected models appear to be end-of-life products.
RemediationAI
No vendor-released patch identified at time of analysis for CVE-2026-5211 across affected D-Link NAS models. Organizations should immediately verify if their D-Link NAS devices fall within the affected product list and check D-Link's official support pages for end-of-life status and any forthcoming security updates. Interim risk mitigation measures include restricting web management interface access to trusted administrative networks only (disable remote access, implement firewall rules blocking external access to TCP ports 80/443 on NAS devices), enforcing strong unique passwords for all NAS accounts, disabling UPnP services if not operationally required, and monitoring authentication logs for suspicious login attempts. Given the likelihood that many affected models are end-of-life, organizations should prioritize migration to currently supported NAS solutions with active security maintenance. Network segmentation isolating NAS devices from critical systems and internet exposure provides defense-in-depth. Additional details available through VulDB references at https://vuldb.com/vuln/354347 and exploit documentation at https://github.com/wudipjq/my_vuln/blob/main/D-Link8/vuln_165/165.md.
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
This vulnerability (CWE-121: Stack-based Buffer Overflow) affects the Common Gateway Interface (CGI) web management interface of D-Link Network Attached Storage (NAS) devices. The flaw exists in the UPnP Audio/Video server path deletion handler, where insufficient input validation on the f_dir parameter allows attackers to write beyond allocated stack memory boundaries. Stack-based buffer overflows are particularly dangerous in embedded device CGI scripts because they can overwrite return addresses and function pointers, enabling arbitrary code execution in the context of the web server process, which typically runs with elevated privileges on NAS firmware. The affected CPE strings indicate vulnerability spans consumer and small-business NAS product lines including single-bay (DNS-120, DNS-320 series) through enterprise four-bay models (DNS-1550-04), suggesting a common vulnerable codebase shared across D-Link's NAS firmware generations. The CGI script location (/cgi-bin/app_mgr.cgi) indicates this is a core management function accessible through the administrative web interface.
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:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A flaw has been found 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. This vulnerability affects the function UPnP_AV_Server_Path_Del of the file /cgi-bin/app_mgr.cgi. Executing a manipulation of the argument f_dir can lead to stack-based buffer overflow. The attack can be executed remotely. The exploit has been published and may be used.
Executive ViewAI
CVE-2026-5211 affects up to 20 legacy D-Link NAS models through firmware 20260205, enabling authenticated attackers to execute arbitrary code remotely with high integrity impact via a stack buffer overflow. With publicly available exploit code and no vendor patch, organizations using these end-of-life devices face immediate risk of data compromise and lateral network movement if credentials are compromised or default credentials remain active.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable UPnP-AV services if operationally feasible; (2) Restrict network-layer access to affected NAS devices via firewall whitelisting; (3) Disable or change all default credentials immediately; (4) Isolate affected devices to a segregated VLAN with minimal trust relationships; (5) Monitor and log all access to /cgi-bin/app_mgr.cgi endpoints; (6) Prioritize replacement or decommissioning of end-of-life models.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Stack-based buffer overflow in D-Link DNS storage appliances (DNS-120, DNS-340L, DNS-1200-05 and others) through the /cg
Stack-based buffer overflow in D-Link NAS devices (DNS-120, DNR-202L, DNS-315L, DNS-320 series, DNS-326, DNS-1100-4, and
Stack-based buffer overflow in D-Link DNS NAS devices (DNS-120 through DNS-1550-04) allows authenticated attackers to ac
Stack-based buffer overflow in D-Link DNS and DNR network storage devices allows authenticated remote attackers to execu
Stack-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
Improper access controls in D-Link network-attached storage devices (DNS-120 through DNS-1550-04, firmware versions up t
Command injection in D-Link NAS devices (DNS-320, DNS-327L, DNS-345 and others) through the time_machine.cgi script allo
A security vulnerability in A flaw (CVSS 6.3). Risk factors: public PoC available.
A security vulnerability in A vulnerability (CVSS 6.3). Risk factors: public PoC available.
A security vulnerability in A vulnerability (CVSS 6.3). Risk factors: public PoC available.
EUVD-2026-17613
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB