CVE-2026-27470 ZoneMinder: Second-Order SQL Injection in `getNearEvents()` via Stored Event Name and Cause Fields
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- PHPUbuntuDebian
Description
ZoneMinder is a free, open source closed-circuit television software application. In versions 1.36.37 and below and 1.37.61 through 1.38.0, there is a second-order SQL Injection vulnerability in the web/ajax/status.php file within the getNearEvents() function. Event field values (specifically Name and Cause) are stored safely via parameterized queries but are later retrieved and concatenated directly into SQL WHERE clauses without escaping. An authenticated user with Events edit and view permissions can exploit this to execute arbitrary SQL queries.
Upgrade path
9 packages: 2 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/zoneminder(Debian 12) | = 1.36.33+dfsg1-1; = 1.36.35+dfsg1-1; = 1.36.37+dfsg1-1; All versions | No fix listed | No fix yet |
| debian/zoneminder(Debian 13) | = 1.36.35+dfsg1-1; = 1.36.37+dfsg1-1; All versions | No fix listed | No fix yet |
| debian/zoneminder(Debian 14) | = 1.36.35+dfsg1-1; = 1.36.37+dfsg1-1; All versions | No fix listed | No fix yet |
| ubuntu/zoneminder(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/zoneminder(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/zoneminder(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/zoneminder(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/zoneminder(Alpine v3.24) | >= 1.37.61, < 1.38.1-r0 | 1.38.1-r0 | Fixed |
| zoneminder | < 1.36.38; = < 1.36.38; = >= 1.37.61, < 1.38.1; >= 1.37.61, < 1.38.1 | 1.36.38, 1.38.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| zoneminder | = < 1.36.38 | No fix listed |
| zoneminder | = >= 1.37.61, < 1.38.1 | No fix listed |
| debian/zoneminder(Debian:12) | All versions | No fix listed |
| debian/zoneminder(Debian:12) | = 1.36.33+dfsg1-1 | No fix listed |
| debian/zoneminder(Debian:12) | = 1.36.35+dfsg1-1 | No fix listed |
| debian/zoneminder(Debian:12) | = 1.36.37+dfsg1-1 | No fix listed |
| debian/zoneminder(Debian:13) | All versions | No fix listed |
| debian/zoneminder(Debian:13) | = 1.36.35+dfsg1-1 | No fix listed |
| debian/zoneminder(Debian:13) | = 1.36.37+dfsg1-1 | No fix listed |
| debian/zoneminder(Debian:14) | All versions | No fix listed |
| debian/zoneminder(Debian:14) | = 1.36.35+dfsg1-1 | No fix listed |
| debian/zoneminder(Debian:14) | = 1.36.37+dfsg1-1 | No fix listed |
| ubuntu/zoneminder(Ubuntu:22.04) | All versions | No fix listed |
| alpine/zoneminder(Alpine:v3.24) | >= 1.37.61, < 1.38.1-r0 | 1.38.1-r0 |
| ubuntu/zoneminder(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/zoneminder(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/zoneminder(Ubuntu:26.10) | All versions | No fix listed |
| zoneminder | < 1.36.38 | 1.36.38 |
| zoneminder | >= 1.37.61, < 1.38.1 | 1.38.1 |
References
- https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-r6gm-478g-f2c4 exploit mitigation vendor-advisory
- https://github.com/ZoneMinder/zoneminder/releases/tag/1.36.38 product release-notes
- https://github.com/ZoneMinder/zoneminder/releases/tag/1.38.1 product release-notes
- https://owasp.org/www-community/attacks/SQL_Injection not-applicable
- Debian Security Tracker CVE-2026-27470 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory