8.8high
ZoneMinder: Second-Order SQL Injection in `getNearEvents()` via Stored Event Name and Cause Fields
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.53% (higher than 46% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ZoneMinder zoneminder | < 1.36.38, >= 1.37.61, < 1.38.1, before 1.36.38, from 1.37.61 before 1.38.1 | CVE List, NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
ZoneMinder es una aplicación de software de televisión de circuito cerrado gratuita y de código abierto. En las versiones 1.36.37 e inferiores y de la 1.37.61 hasta la 1.38.0, existe una vulnerabilidad de inyección SQL de segundo orden en el archivo web/ajax/status.php dentro de la función getNearEvents(). Los valores de los campos de evento (específicamente Nombre y Causa) se almacenan de forma segura mediante consultas parametrizadas, pero luego se recuperan y se concatenan directamente en las cláusulas SQL WHERE sin escapar. Un usuario autenticado con permisos de edición y visualización de Eventos puede explotar esto para ejecutar consultas SQL arbitrarias.
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 | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27470 changed 2026-02-24 | CVE Terms of Use |
| NVD | CVE-2026-27470 changed 2026-06-17 | Public domain |