# CVE-2024-10914: D-Link DNS-320/DNS-320LW/DNS-325/DNS-340L account_mgr.cgi cgi_user_add os command injection

> Remote attackers can execute arbitrary OS commands via the account_mgr.cgi script in D-Link NAS devices, requiring authentication.

- **Severity:** Critical 9.2 (`CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 6 Nov 2024
- **Updated:** 24 Nov 2024
- **Also known as:** GHSA-qp96-9hxv-3xx4

## What is CVE-2024-10914?

CVE-2024-10914 is a critical command injection vulnerability in Dlink Dns-320 Firmware, published on 6 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A vulnerability was found in D-Link DNS-320, DNS-320LW, DNS-325 and DNS-340L up to 20241028. It has been declared as critical. Affected by this vulnerability is the function cgi_user_add of the file /cgi-bin/account_mgr.cgi?cmd=cgi_user_add. The manipulation of the argument name leads to os command injection. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. The exploit has been disclosed to the public and may be used.

Weakness: CWE-78 (Improper Neutralization of Special Elements used in an OS Command), CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), CWE-707 (Improper Neutralization)

## Which versions are affected by CVE-2024-10914?

It affects 4 products.


Products: Dlink Dns-320 Firmware, Dlink Dns-320lw Firmware, Dlink Dns-325 Firmware, Dlink Dns-340l Firmware.

## How do I fix CVE-2024-10914?

No fix has been published for CVE-2024-10914 yet. Limit exposure of the affected software until one is available.

## Is CVE-2024-10914 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-10914 exists.

Public exploit code:

- POC - CVE-2024–10914- Command Injection Vulnerability in `name` parameter for D-Link NAS (github_poc): https://github.com/verylazytech/CVE-2024-10914
- Exploit for cve-2024-10914: D-Link DNS-320, DNS-320LW, DNS-325, DNS-340L Version 1.00, Version 1.01.0914.2012, Version 1.01, Version 1.02, Version 1.08 Command Injection (github_poc): https://github.com/imnotcha0s/CVE-2024-10914
- CVE-2024-10914 is a critical command injection vulnerability affecting several legacy D-Link Network Attached Storage (NAS) devices. (github_poc): https://github.com/ThemeHackers/CVE-2024-10914
- CVE-2024-10914 D-Link Remote Code Execution (RCE) (github_poc): https://github.com/redspy-sec/D-Link
- 这是一个D-Link rce漏洞 检测程序 (github_poc): https://github.com/Bu0uCat/D-Link-NAS-CVE-2024-10914-
- https://github.com/yenyangmjaze/cve-2024-10914 (github_poc): https://github.com/yenyangmjaze/cve-2024-10914

## Other vulnerabilities in Dlink Dns-320 Firmware

- [CVE-2020-25506](https://insights.sbomify.com/CVE-2020-25506/): D-Link DNS-320 Device Command Injection (critical 9.8, exploited in the wild)
- [CVE-2019-16057](https://insights.sbomify.com/CVE-2019-16057/): D-Link DNS-320 Remote Code Execution (critical 9.8, exploited in the wild)
- [CVE-2024-10915](https://insights.sbomify.com/CVE-2024-10915/): D-Link DNS-320/DNS-320LW/DNS-325/DNS-340L account_mgr.cgi cgi_user_add os command injection (critical 9.2)
- [CVE-2024-10916](https://insights.sbomify.com/CVE-2024-10916/): D-Link DNS-320/DNS-320LW/DNS-325/DNS-340L HTTP GET Request info.xml information disclosure (medium 6.9)
- [CVE-2024-8461](https://insights.sbomify.com/CVE-2024-8461/): D-Link DNS-320 Web Management Interface discovery.cgi information disclosure (medium 6.9)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-10914 and fix it if it is affected.

What it is: CVE-2024-10914 is a critical command injection vulnerability in Dlink Dns-320 Firmware, published on 6 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-10914 exists.

Affected product: Dlink Dns-320 Firmware. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-10914/ (Markdown: https://insights.sbomify.com/CVE-2024-10914/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-10914
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-10914
- OSV: https://osv.dev/vulnerability/CVE-2024-10914

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-10914/
Summaries are generated and may contain mistakes; the official description above is the record.
