CVE-2026-102608: ZoneMinder: Authenticated OS Command Injection via unsanitized Monitor Name in event export (download_functions.php)
ZoneMinder is a free, open source closed-circuit television software application. Prior to 1.38.3, downloadEvents() manually wraps a monitor Name value in single quotes instead of using escapeshellarg() before placing it in shell commands when a user with monitor-create or monitor-edit permission stores a monitor Name containing shell metacharacters and a user with Events View permission exports that monitor's events. In this attack mechanism, the stored monitor Name reaches both the ffmpeg concatenation command and the tar or zip archive command and breaks out of manual quoting. Arbitrary commands execute as the web server user. This issue is fixed in version 1.38.3.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ZoneMinderto a version that resolves this vulnerability.Fixed in 1.38.3
Event History
Frequently Asked Questions
Which deployments are exposed?
ZoneMinder versions prior to 1.38.3 are affected. Exploitation requires that a user can create or edit monitors and that an Events View user exports events for the affected monitor.
What access does an attacker need?
An attacker needs monitor-create or monitor-edit permission to save a monitor name containing shell metacharacters. They also need an Events View user to export that monitor’s events; the export action requires user interaction.
What is the impact of successful exploitation?
Injected commands run as the web server user. The vulnerable monitor name is used in both the ffmpeg concatenation command and the tar or zip archive command used during event export.
How can teams mitigate the issue before upgrading?
Restrict monitor-create and monitor-edit permissions, and prevent or remove monitor names containing shell metacharacters. Limit Events View access and avoid exporting events for monitors whose names may be untrusted until version 1.38.3 is deployed.
How can administrators identify potential exposure?
Review monitor names for shell metacharacters, particularly on monitors created or modified by users with monitor-create or monitor-edit permission. Also review whether users with Events View permission have exported events for those monitors.