Description
A command injection vulnerability in Dahua EIMS versions prior to 2240008 allows unauthenticated remote attackers to execute arbitrary system commands via the capture_handle.action interface. The flaw stems from improper input validation in the captureCommand parameter, which is processed without sanitization or authentication. By sending crafted HTTP requests, attackers can inject OS-level commands that are executed on the server, leading to full system compromise. Exploitation evidence was first observed by the Shadowserver Foundation on 2024-04-06 UTC.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Zhejiang Dahua Technology | EIMS | < 2240008 | 2240008 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
CrimsonfiedOfficial/CVE-2024-13985 ★ 2 · Jul 11, 2026
Dahua CVE-2024-13985
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Dahua EIMS - Unauthenticated Remote Code Execution via capture_handle http/cves/2024/CVE-2024-13985.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://support.dahuatech.com/bulletin/info?IsDpValue=APKncD%2FBd6zIq4O2BUpuhjg6hGbLYAQKuf5hnmPaK9M%3D vendor-advisory
- https://cn-sec.com/archives/2554372.html technical-description exploit
- https://blog.csdn.net/weixin_43567873/article/details/136636198 technical-description exploit
- https://github.com/ahisec/nuclei-tps/blob/main/http/vulnerabilities/dahua/dahua-eims-capture-handle-rce.yaml technical-description exploit
- https://s4e.io/tools/dahua-eims-remote-code-execution third-party-advisory
- https://pentest-tools.com/vulnerabilities-exploits/dahua-eims-remote-command-execution_23961 third-party-advisory
- https://www.cnvd.org.cn/flaw/show/CNVD-2024-17054 third-party-advisory
- https://www.vulncheck.com/advisories/dahua-eims-rce third-party-advisory