ZoneMinder
ZoneMinder: Second-Order SQL Injection in `getNearEvents()` via Stored Event Name and Cause Fields
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.36.38
- >= 1.37.61, < 1.38.1
Fixed in 1.36.38, 1.38.1
Mitigation
Upgrade zoneminder to 1.36.38 or 1.38.1 or later.
References
- Vendor advisory github.com/ZoneMinder/zoneminder/security/advi…
- Release notes github.com/ZoneMinder/zoneminder/releases/tag/…
- Release notes github.com/ZoneMinder/zoneminder/releases/tag/…
Timeline
Days relative to CVE publicationFirst public PoC 9 h after publication; not in CISA KEV. First PoC: kocaemre/CVE-2026-27470 (created 21 Feb 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| kocaemre/CVE-2026-27470 | 21 Feb 2026 +9 h | 6 | PoC |
| d3vn0mi/CVE-2026-27470-POC | 13 Mar 2026 +20 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /index.php
- Query
request=statusentity=neareventsid=1sort_field=Namesort_asc=1view=consoleentity=eventssort_field=Idlimit=1- Ports
- 8080
- Seen in
- 1 repo: kocaemre/CVE-2026-27470
- Evidence
- kocaemre/CVE-2026-27470/README.md:69 kocaemre/CVE-2026-27470/poc.py:93 kocaemre/CVE-2026-27470/poc.py:109 kocaemre/CVE-2026-27470/poc.py:164
POST /index.php
- Body markers
request=event&action=rename&id=1&eventName=' UNION SELECT Password,NULL FROM Users LIMIT 0,1-- -view=loginaction=loginusername=password=inapplication/x-www-form-urlencoded- Ports
- 8080
- Seen in
- 1 repo: kocaemre/CVE-2026-27470
- Evidence
- kocaemre/CVE-2026-27470/README.md:52 kocaemre/CVE-2026-27470/poc.py:83 kocaemre/CVE-2026-27470/poc.py:147 kocaemre/CVE-2026-27470/poc.py:180
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/index\.php\?(?:.*&)?request=status.*entity=nearevents.*id=1.*sort_field=Name.*sort_asc=1.*view=console.*entity=events.*sort_field=Id.*limit=1
(?i)^/index\.php(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-27470 ZoneMinder zoneminder exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/index.php"; http.uri; content:"request=status"; http.uri; content:"entity=nearevents"; http.uri; content:"id=1"; http.uri; content:"sort_field=Name"; http.uri; content:"sort_asc=1"; http.uri; content:"view=console"; http.uri; content:"entity=events"; http.uri; content:"sort_field=Id"; http.uri; content:"limit=1"; reference:url,poc.griffinguard.io/cve/CVE-2026-27470; classtype:web-application-attack; sid:9338960; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-27470 ZoneMinder zoneminder exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/index.php"; http.request_body; content:"request=event&action=rename&id=1&eventName=' UNION SELECT Password,NULL FROM Users LIMIT 0,1-- -"; http.request_body; content:"view=login"; http.request_body; content:"action=login"; http.request_body; content:"username="; http.request_body; content:"password="; reference:url,poc.griffinguard.io/cve/CVE-2026-27470; classtype:web-application-attack; sid:9382576; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: ZoneMinder zoneminder exploit attempt (CVE-2026-27470)
id: gg-pocmon-cve-2026-27470-9338960
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-27470. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-27470
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/index.php'
cs-uri-query|contains|all:
- 'request=status'
- 'entity=nearevents'
- 'id=1'
- 'sort_field=Name'
- 'sort_asc=1'
- 'view=console'
- 'entity=events'
- 'sort_field=Id'
- 'limit=1'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.27470
title: ZoneMinder zoneminder exploit attempt (CVE-2026-27470)
id: gg-pocmon-cve-2026-27470-9382576
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-27470. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-27470
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/index.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.27470