GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
85Vexday Risk Score
Patch now. It exploitation observed by VulnCheck and has a working public exploit.
ssvc Actcvss 9.8epss 1.8%
from disclosure to weapon0 days
Published on NVDAug 21
1st PoCAug 16
VulnCheckAug 21
exploitation probability
1.8%top 24% of all CVEs
observed exploitation
yesVulnCheck
4 public exploit(s)
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
geotools · geotoolspublic PoCs found — 4
githubgithub.com/YonLiud/CVE-2026-76904★ 3githubgithub.com/bickZero93/CVE-2026-76904★ 0vulncheckvulncheck.com/xdb/a84bac21ea28unverifiedvulncheckvulncheck.com/xdb/ba840cc25ac9unverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
References
https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176https://github.com/geotools/geotools/pull/5829https://github.com/geotools/geotools/releases/tag/33.6https://github.com/geotools/geotools/releases/tag/34.5https://github.com/geotools/geotools/releases/tag/35.1https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjhhttps://osgeo-org.atlassian.net/browse/GEOT-7589https://osgeo-org.atlassian.net/browse/GEOT-7958https://osgeo-org.atlassian.net/browse/GEOT-7959