Summary
ZoneMinder, an open source video surveillance application, lets any authenticated user modify protected configuration settings through its API, which can lead to arbitrary command execution. The CVSS 3.1 score is 9.9 (critical) and the vendor states it is fixed in version 1.38.4.
What happened
Prior to version 1.38.4, any authenticated user can use the /api/configs/edit/{name}.json endpoint to modify protected configuration settings, because ConfigsController::edit() does not enforce the System=Edit authorization requirement and its system-variable protection is ineffective. According to the description, an attacker can set ZM_PATH_FFMPEG to a value that carries a command and trigger its execution through an exec() call in web/views/image.php or web/includes/Event.php by requesting frame extraction. This allows arbitrary command execution with the privileges of the web server user. The weakness is classified as CWE-862 (missing authorization).
Why it matters
According to the description, command execution with the web server user's privileges can expose private camera feeds, recordings and database data, or allow an attacker to establish persistence. The CVSS 3.1 score is 9.9 (vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, source CNA GitHub_M) and severity is critical. An authenticated account is required, though no special privileges are. CISA's KEV catalog does not list this vulnerability as actively exploited, and the source provides no evidence of exploitation.
Affected products and versions
ZoneMinder (ZoneMinder), product zoneminder: versions <= 1.36.38 and versions >= 1.37.61, < 1.38.4.
| Product | Versions | Fixed in |
|---|---|---|
| ZoneMinder zoneminder | <= 1.36.38 | — |
| ZoneMinder zoneminder | >= 1.37.61, < 1.38.4 | — |
Action recommended by the source
The vendor states the issue is fixed in version 1.38.4. The source links the security advisory GHSA-mvj8-mqqq-2w5f, pull request 4987, two commits and the 1.38.4 release on GitHub. The source does not state any alternative mitigations.
Sources and references
- https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-mvj8-mqqq-2w5f — CVE Program
- https://github.com/ZoneMinder/zoneminder/pull/4987 — CVE Program
- https://github.com/ZoneMinder/zoneminder/commit/5add2f922cb1e3ff4da1cdd5c23d55f2b6f271d5 — CVE Program
- https://github.com/ZoneMinder/zoneminder/commit/bbb03d2d052ee78076ed7942bce5c099bc8c8abe — CVE Program
- https://github.com/ZoneMinder/zoneminder/releases/tag/1.38.4 — CVE Program
Weaknesses (CWE): CWE-862
Relevant change history
Published
Advisory published.