OS Command Injection in ZoneMinder - #VU158962

 

OS Command Injection in ZoneMinder - #VU158962

Published: November 3, 2026


Vulnerability identifier: #VU158962
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary OS commands as the ZoneMinder web server account, potentially accessing database credentials, camera passwords, recorded footage, and web root files.

The vulnerability exists due to improper neutralization of shell metacharacters in ZoneMinder's Event::GenerateVideo() function when constructing an ffmpeg command from event fields. DefaultVideo is interpolated without quoting, while Name receives only whitespace replacement before being embedded in a single-quoted argument. A remote user can use Events=Edit permission on a monitor to set DefaultVideo to x;id>/tmp/zm_rce_poc;echo x or Name to x';id>/tmp/zm_rce_poc2;echo 'x through the API, then trigger event video generation through the web interface to execute arbitrary OS commands as the web server account.


Affected software

ZoneMinder

Remediation

Install security update from vendor's website.

ZoneMinder - update to 1.38.5

External References

Related Security Bulletins