
CVE-2025-65791 — Command Injection in ZoneMinder
A critical Command Injection vulnerability exists in ZoneMinder v1.36.34 due to improper input validation in the web/views/image.php component. Unsanitized user-controlled input is passed directly to the PHP exec() function, allowing remote attackers to execute arbitrary system commands.
This vulnerability has been assigned CVE-2025-65791.
web/views/image.phpThe application fails to properly sanitize user-supplied input before using it within shell commands. Parameters processed in image.php are passed directly to the exec() function, enabling attackers to inject shell metacharacters and execute arbitrary commands on the underlying operating system.
This vulnerability may be exploited remotely and does not require authentication in certain configurations.
An attacker may leverage this vulnerability to:
⚠️ Warning: For educational and authorized testing purposes only.
?when=now;id
This payload appends a malicious command to the intended command execution flow, resulting in arbitrary command execution.
| Impact Area | Severity |
|---|---|
| Confidentiality | High |
| Integrity | High |
| Availability | High |
This vulnerability qualifies as critical severity (P1) due to the possibility of unauthenticated remote code execution.
exec() with user-controlled inputescapeshellarg())Rishav Anand
This information is provided for educational and defensive security purposes only. The author takes no responsibility for misuse of the information provided.