Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
CriticalPublic exploit

OS Command Injection in D-Link DNS-320/DNS-320LW/DNS-325/DNS-340L cgi_user_add

IdentifiersCVE-2024-10915CWE-78· Improper Neutralization of Special…

CVE-2024-10915 is a critical OS command injection vulnerability affecting D-Link DNS-320, DNS-320LW, DNS-325, and DNS-340L devices up to 20241028. The flaw is in the cgi_user_add function exposed through /cgi-bin/account_mgr.cgi?cmd=cgi_user_add. Improper handling of the group argument allows attacker-controlled input to be incorporated into an operating system command, resulting in command injection. The issue is remotely reachable, and public reporting indicates exploit details have been disclosed. The affected products are legacy/EoL NAS devices and the vulnerability has also been reported as leveraged by Mirai-derived botnet activity such as ShadowV2.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows remote execution of arbitrary OS commands on the affected NAS device in the context of the vulnerable CGI process. This can enable full compromise of the appliance, including unauthorized account manipulation, malware deployment, botnet enrollment, persistence, configuration tampering, and use of the device as a pivot or DDoS node. Given the device class, compromise may also expose stored files, credentials, and administrative settings, and may disrupt NAS availability or integrity.

Mitigation

If you can’t patch tonight, do this now.

Do not expose the web management interface to the internet. Place affected NAS devices behind a firewall or VPN, restrict access to /cgi-bin/ endpoints to trusted IPs, disable unnecessary remote administration features, and monitor for suspicious requests to /cgi-bin/account_mgr.cgi?cmd=cgi_user_add, especially those containing shell metacharacters in the group parameter. Segment legacy NAS devices from critical networks, rotate credentials stored on or used by the device, and monitor for signs of botnet infection or unexpected outbound traffic. Because these are EoL devices, replacement should be prioritized.

Remediation

Patch, then assume compromise.

Upgrade to a fixed firmware version if one is made available by the vendor for the specific model. However, the affected D-Link models are reported as end-of-life/end-of-support, and public reporting indicates some impacted devices will not receive patches. In practice, the primary remediation is to retire and replace affected devices with supported hardware. If replacement is not immediately possible, remove remote exposure and restrict access to the management interface to trusted administrative networks only.
PUBLIC EXPLOITS

Exploits

1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.

VALID 1 / 1 TOTALView more in app
CVE-2024-10915MaturityPoCVerified exploit

This repository contains a Python exploit for CVE-2024-10915, a command injection vulnerability affecting several D-Link NAS models (DNS-320, DNS-320LW, DNS-325, DNS-340L). The exploit leverages the /cgi-bin/account_mgr.cgi?cmd=cgi_user_add endpoint, injecting arbitrary system commands via the 'group' parameter. The exploit script (dlink_nas_rce_cve_2024_10915.py) is a standalone Python 3 tool that allows the user to specify the target URL, the command to execute, an optional HTTP proxy, and an output file for the response. The script is operational and provides direct remote code execution on unauthenticated targets. The README.md provides detailed usage instructions, affected products, and example commands. The main attack vector is network-based, targeting exposed HTTP endpoints on vulnerable D-Link NAS devices. No authentication is required for exploitation.

r0otk3rDisclosed Jul 11, 2025pythonnetwork
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
D-LinkDns-320 Firmwareoperating_system
D-LinkDns-320lw Firmwareoperating_system
D-LinkDns-325 Firmwareoperating_system
D-LinkDns-340l Firmwareoperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity2

Community discussion across Reddit, Mastodon, and other social sources.