CVE-2026-76904
CRITICAL 9.8CVSS 3.1GeoTools 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.
- Published
- 21 Aug 2026
- Last modified
- 30 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-89
- Also known as
- GHSA-mqjf-5f49-2fjh
- Sources
- NVDJSONOSV GHSA-mqjf-5f49-2fjhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | org.geotools.jdbc:gt-jdbc-postgis | >= 35.0, < 35.1 | 35.1 |
| OSV | Maven | org.geotools.jdbc:gt-jdbc-postgis | >= 34.0, < 34.5 | 34.5 |
| OSV | Maven | org.geotools.jdbc:gt-jdbc-postgis | >= 30.5, < 33.6 | 33.6 |
References
- https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176 · WEB
- https://github.com/geotools/geotools/pull/5829 · WEB
- https://github.com/geotools/geotools/releases/tag/33.6 · WEB
- https://github.com/geotools/geotools/releases/tag/34.5 · WEB
- https://github.com/geotools/geotools/releases/tag/35.1 · WEB
- https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh · WEB
- https://osgeo-org.atlassian.net/browse/GEOT-7589 · WEB
- https://osgeo-org.atlassian.net/browse/GEOT-7958 · WEB
- https://osgeo-org.atlassian.net/browse/GEOT-7959 · WEB
- https://github.com/geotools/geotools · PACKAGE
History
- 30 Nov 2026 19:41 UTC · NVD: updated (other details)
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 21 Aug 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 21 Aug 2026)