GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
Summary
| CVE | CVE-2026-76904 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-08-21 21:17:06 UTC |
| Updated | 2026-08-21 21:17:06 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 9.8 CRITICAL from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-89 | CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/geotools/geotools/releases/tag/34.5 | [email protected] | github.com | |
| github.com/geotools/geotools/pull/5829 | [email protected] | github.com | |
| github.com/geotools/geotools/releases/tag/33.6 | [email protected] | github.com | |
| github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh | [email protected] | github.com | |
| github.com/geotools/geotools/releases/tag/35.1 | [email protected] | github.com | |
| github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da... | [email protected] | github.com | |
| osgeo-org.atlassian.net/browse/GEOT-7589 | [email protected] | osgeo-org.atlassian.net | |
| osgeo-org.atlassian.net/browse/GEOT-7959 | [email protected] | osgeo-org.atlassian.net | |
| osgeo-org.atlassian.net/browse/GEOT-7958 | [email protected] | osgeo-org.atlassian.net | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.