Vulnerability · Published Aug 21, 2026 · Assigned by GitHub_M
CVE-2026-76904GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
Critical 9.8
In plain English
A critical-severity SQL injection in geotools from geotools. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.0% (higher than 91% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.geotools.jdbc:gt-jdbc-postgis | 35.1 | GHSA-mqjf-5f49-2fjh |
| Maven | org.geotools.jdbc:gt-jdbc-postgis | 34.5 | GHSA-mqjf-5f49-2fjh |
| Maven | org.geotools.jdbc:gt-jdbc-postgis | 33.6 | GHSA-mqjf-5f49-2fjh |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh x_refsource_CONFIRM
- https://github.com/geotools/geotools/pull/5829 x_refsource_MISC
- https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176 x_refsource_MISC
- https://github.com/geotools/geotools/releases/tag/33.6 x_refsource_MISC
- https://github.com/geotools/geotools/releases/tag/34.5 x_refsource_MISC
- https://github.com/geotools/geotools/releases/tag/35.1 x_refsource_MISC
- https://osgeo-org.atlassian.net/browse/GEOT-7589 x_refsource_MISC
- https://osgeo-org.atlassian.net/browse/GEOT-7958 x_refsource_MISC
- https://osgeo-org.atlassian.net/browse/GEOT-7959 x_refsource_MISC