{"id":"CVE-2026-102608","published":"2026-10-16T20:17:17.253","lastModified":"2026-10-16T20:17:17.363","description":"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.","cvssScore":9,"cvssSeverity":"CRITICAL","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","cwes":["CWE-78"],"vendors":[],"products":[],"references":[{"url":"https://github.com/ZoneMinder/zoneminder/commit/2de2ae44a1d751bad4b020c5573b2d58c59c1525","tags":[]},{"url":"https://github.com/ZoneMinder/zoneminder/commit/b3a7c05f079c87badf4b0ce052da0acfd4047a4b","tags":[]},{"url":"https://github.com/ZoneMinder/zoneminder/commit/b5605e01c14354fc8e2dcae8cefd90c3674880d9","tags":[]},{"url":"https://github.com/ZoneMinder/zoneminder/releases/tag/1.38.3","tags":[]},{"url":"https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-88m4-hrgp-m9v3","tags":[]},{"url":"https://www.scriptkittens.com/blog/two-sinks-one-shell","tags":[]}],"exploitRefs":[{"url":"https://github.com/ZoneMinder/zoneminder/commit/2de2ae44a1d751bad4b020c5573b2d58c59c1525","tags":[]},{"url":"https://github.com/ZoneMinder/zoneminder/commit/b3a7c05f079c87badf4b0ce052da0acfd4047a4b","tags":[]},{"url":"https://github.com/ZoneMinder/zoneminder/commit/b5605e01c14354fc8e2dcae8cefd90c3674880d9","tags":[]},{"url":"https://github.com/ZoneMinder/zoneminder/releases/tag/1.38.3","tags":[]},{"url":"https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-88m4-hrgp-m9v3","tags":[]}],"hasPoc":true,"ai":{"summary":"ZoneMinder allows arbitrary command execution through shell injection when processing monitor names containing shell metacharacters, affecting users with monitor creation/editing permissions who export events from monitors with maliciously crafted names.","exploitability":"Exploitation requires a user with monitor-create or monitor-edit permission to store a monitor name with shell metacharacters, and another user with Events View permission to export those events, making it moderately difficult but possible to orchestrate.","blast_radius":"An attacker could execute arbitrary commands as the web server user, potentially leading to full system compromise if the web server has elevated privileges or access to sensitive data.","remediation":"Upgrade to ZoneMinder version 1.38.3 or later to fix the shell injection vulnerability in downloadEvents() function.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["rce","shell-injection","web","video-surveillance"],"model":"garnet-coder","analyzedAt":"2026-10-17T08:49:32.059Z"}}