Skip to main content
← All vulnerabilities
CVE-2026-76904GHSA-MQJF-5F49-2FJH

GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 34.5, 33.6, 35.1
2 proofs of concept on GitHub, 1 Nuclei template
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • geotools geotools

    From 34.0 · fixed in 34.5; From 30.5 · fixed in 33.6

  • org.geotools.jdbc:gt-jdbc-postgisMaven

    From 35.0 · fixed in 35.1

  • org.geotools.jdbc:gt-jdbc-postgisMaven

    From 34.0 · fixed in 34.5

  • org.geotools.jdbc:gt-jdbc-postgisMaven

    From 30.5 · fixed in 33.6

References 12

GitHub · geotools/geotools

osgeo-org.atlassian.net

GitHub · projectdiscovery/nuclei-templates

GitHub · YonLiud/CVE-2026-76904

GitHub · bickZero93/CVE-2026-76904