Summary
CVE-2025-31704 is a critical OS command injection vulnerability (CWE-78) in Dahua Intelligent Connection Center that can lead to remote code execution. A remote attacker can send a specially crafted request to an affected system and execute arbitrary commands. The CVSS v3.1 base score is 9.8 (Critical).
Technical details
- Root cause: improper neutralization of special elements used in OS commands (CWE-78).
- Trigger conditions: a specially crafted request sent to the affected system. No privileges and no user interaction are required.
- Attack vector: network, low attack complexity.
- Impact: arbitrary command execution, resulting in remote code execution (high impact on confidentiality, integrity and availability).
Affected software
- Dahua Intelligent Connection Center V1.000.0000000.1 through 1.000.0000005.0
- Dahua Intelligent Connection Center V5.000.0000000.6 through V5.000.0000000.14 (before V5.000.0000000.15)
Severity
CVSS v3.1 base score 9.8 (Critical): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade the V5 branch to V5.000.0000000.15 or later, which is the first version outside the affected range. The CVE record lists no fixed version for the V1.000 branch, so check Dahua’s security advisories for it.
- If you can’t patch right away: restrict network access to the platform so that only trusted hosts can reach it, and don’t expose it to the internet. Monitor access logs for unusual characters, command syntax or unexpected parameters in requests.

