Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify internet-exposed D-Link NAS management port
-
DeliveryAuthenticate with default or previously obtained credentials
-
ExploitSend crafted HTTP request to /cgi-bin/iscsi_mgr.cgi
-
ExecutionInject shell metacharacters into alias or volume_location parameter
-
PersistArbitrary OS command executes on NAS firmware
-
ImpactExfiltrate stored data or pivot to iSCSI-connected network infrastructure
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques 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 | Exploitation requires the attacker to authenticate to the D-Link NAS web interface with at least low-privilege credentials (PR:L per the provided CVSS 4.0 vector); this prerequisite is frequently satisfied by default or unchanged factory credentials common on consumer NAS devices. The iSCSI management CGI script (/cgi-bin/iscsi_mgr.cgi) must be reachable - it is present in the default firmware configuration for both models with no special activation required. No attack complexity preconditions (AC:L) or specific attack requirements (AT:N) beyond credential possession apply. Exploitation is constrained by the authentication requirement: fully unauthenticated exploitation is not supported by available CVSS data. Network isolation - placing the device behind a NAT or firewall that blocks external access to TCP 80/443 - substantially limits remote exploitation to LAN-resident or credential-holding attackers. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with VC:H/VI:H/VA:H and SC:H/SI:H/SA:H reflects a high-severity flaw that is network-reachable, requires no complex preconditions, and has full impact on both the vulnerable device and systems dependent on its storage - a scope change that amplifies blast radius beyond the NAS itself. The low-privilege requirement (PR:L) is a meaningful but often trivially bypassed barrier on consumer NAS equipment where default credentials remain unchanged; even a mid-sized municipal IT team in bytom operating these devices on a perimeter-adjacent VLAN should treat this as urgent given the public exploit disclosure. EPSS data was not provided, so quantified exploitation probability is unavailable; however, the combination of a public POC, consumer-grade device with historically poor patch hygiene, and network-accessible attack vector suggests meaningful opportunistic risk. The absence of a CISA KEV entry is a mild positive signal but not a reliable safety indicator given that consumer NAS exploitation is often underreported. No CVSS 3.x base score was provided alongside the 4.0 score; independent assessment using consistent metrics is recommended. |
| Exploit ScenarioDerived | An attacker who has obtained low-privilege credentials - including default factory credentials such as admin/admin that are frequently left unchanged - sends a crafted HTTP POST request to /cgi-bin/iscsi_mgr.cgi with a shell-metacharacter-injected value in the volume_location or alias parameter. The CGI handler passes the unsanitized input to a shell command, causing the device to execute attacker-controlled instructions, which can include adding a backdoor account, exfiltrating stored data, or pivoting to other systems via the iSCSI network fabric. A public proof-of-concept exploit is available, meaning this scenario requires minimal technical sophistication. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 31, 2026
OS command injection in D-Link DNS-340L and DNS-345 NAS appliances (firmware through 20260717) allows authenticated network attackers to execute arbitrary operating system commands by supplying shell metacharacters in the alias, username, password, or volume_location arguments of the iSCSI management endpoint /cgi-bin/iscsi_mgr.cgi. A public proof-of-concept exploit has been disclosed, materially lowering the bar for opportunistic exploitation against devices with default or weak credentials. No CISA KEV listing has been identified, but the accessible attack surface and available POC make this a priority remediation item for any deployment with this NAS model exposed to untrusted networks.
Earlier versions of this analysis (1)
OS command injection in D-Link DNS-340L and DNS-345 network-attached storage devices (firmware up to build 20260717) allows an authenticated remote attacker to execute arbitrary operating-system commands via the /cgi-bin/iscsi_mgr.cgi endpoint. The alias, username, password, and volume_location parameters are passed unsanitized into a shell context, granting full device takeover. Publicly available exploit code exists, and both affected models are end-of-life D-Link NAS appliances unlikely to receive fixes.
RemediationAI
No vendor-confirmed patched firmware version has been identified in available data; operators should check https://www.dlink.com/ immediately for an advisory covering DLINK-CMD-006 or CVE-2026-82692. Given D-Link's history of not releasing security patches for older NAS models, EOL status should be verified - if confirmed, device replacement with a supported product is the definitive remediation. As an immediate compensating control, restrict all access to the NAS web management interface (typically TCP 80/443) using firewall or ACL rules so that only explicitly trusted internal hosts can reach the device; this eliminates remote exploitation without requiring a firmware change. If the device firmware supports disabling the iSCSI management web interface independently of general management, doing so removes the vulnerable endpoint directly. Changing all credentials from factory defaults is a prerequisite mitigation that raises the effective exploitation bar to credential theft or brute-force. The technical details in the public disclosure at https://github.com/dxz0069/WAVLINK-WN530H4-Command-Injection-in-set_add_routing/blob/main/DLINK-CMD-006-vulndb.md can be used to verify whether a future firmware release fully addresses the affected parameters.
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 affected devices are D-Link DNS-340L and DNS-345 network-attached storage appliances, identified by CPE strings cpe:2.3:a:d-link:dns-340l:*:*:*:*:*:*:*:* and cpe:2.3:a:d-link:dns-345:*:*:*:*:*:*:*:*. The root cause is CWE-78 (Improper Neutralization of Special Elements used in an OS Command), a classic OS command injection pattern. The vulnerable component is the iSCSI management CGI script at /cgi-bin/iscsi_mgr.cgi; the iSCSI protocol enables block-level storage transport over IP networks, and its management interface accepts user-controlled parameters - alias, username, password, and volume_location - at least one of which is passed to a shell invocation without sanitization or quoting. The affected firmware version boundary is expressed as a build date (20260717) rather than a conventional semantic version, indicating all known released firmware for both models is within scope.
Know when Dns 340l 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:H/SI:H/SA:H/E:P
Network-reachable CGI endpoint requires only low-privilege auth (PR:L); scope changed because exploitation can impact iSCSI-dependent downstream systems.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
4DescriptionCVE.org
A vulnerability was found in D-Link DNS-340L and DNS-345 up to 20260717. This affects an unknown part of the file /cgi-bin/iscsi_mgr.cgi. Performing a manipulation of the argument alias/username/password/volume_location results in os command injection. It is possible to initiate the attack remotely. The exploit has been made public and could be used.
Articles & Coverage 2
Technical POC Analysis
The vulnerability is an OS command injection, CWE-78, in the D-Link DNS-340L and DNS-345 iSCSI management CGI, /cgi-bin/iscsimgr.cgi (binary path cgi/iscsimgr.cgi, ARM EABI5 little-endian, confirmed…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
D-Link DNS-340L and DNS-345 NAS appliances deployed for shared storage contain a remote command execution vulnerability that grants authenticated attackers full operating system access to manage sensitive data and storage infrastructure. The threat is material: publicly available exploit code significantly lowers exploitation barriers, particularly against devices running default credentials-a common deployment scenario in enterprise environments. Immediate action is required to audit deployments and implement access controls, as patches are not yet available from the vendor.
No vendor-released patch identified at time of analysis. Implement immediate mitigations: restrict firewall access to the iSCSI management endpoint (/cgi-bin/iscsi_mgr.cgi) to authorized networks and personnel only; change default credentials and enforce strong, unique passwords on all affected devices; disable iSCSI functionality if not required for business operations; implement network segmentation to isolate NAS devices from untrusted and guest networks; and monitor access logs for suspicious requests to the management endpoint.
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.
OS command injection in D-Link DNS-340L and DNS-345 NAS devices exposes authenticated administrators to arbitrary system
OS command injection in D-Link DNS-340L firmware 1.01B04 allows authenticated remote attackers to execute arbitrary oper
OS command injection in D-Link DNS-320L, DNS-327L, DNS-340L, and DNS-345 NAS devices allows remote authenticated attacke
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
OS command injection in D-Link DNS-320L, DNS-327L, DNS-340L, and DNS-345 NAS devices allows a low-privileged remote atta
OS command injection in D-Link DNS-327L and DNS-340L NAS devices (all firmware versions through 20260717) allows a remot
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
EUVD-2026-68503
GHSA-2rcm-3xmw-qh3m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB