CVE-2026-76904 — Vulnerability in gt-jdbc-postgis — CVE Details
GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (3.98%). Schedule for your next planned update.
Does your project use an affected org.geotools.jdbc:gt-jdbc-postgis version?
Paste your pom.xml to check it for CVE-2026-76904 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
An SQL Injection Vulnerability has been found when executing OGC Filters with PostGIS DataStore implementation:
jsonArrayContainsfunction
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
- GeoTools 35.1
- GeoTools 33.5
- GeoTools 34.4
Mitigation
No mitigation is available:
- To limit scope of SQL Injection the PostGIS connection pool should be configured with limited rights.
Impact
This vulnerability can lead to execution of arbitrary SQL expressions in the database.
References
Advisory Timeline
- First published August 21, 2026 (97 days ago).
- Last revised August 21, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 33.6 for org.geotools.jdbc:gt-jdbc-postgis -->
<!-- Update pom.xml dependency version to 35.1 for org.geotools.jdbc:gt-jdbc-postgis -->
<!-- Update pom.xml dependency version to 34.5 for org.geotools.jdbc:gt-jdbc-postgis -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.geotools.jdbc:gt-jdbc-postgis Maven · Affected: All versions | 33.6 |
| org.geotools.jdbc:gt-jdbc-postgis Maven · Affected: 35.0 | 35.1 |
| org.geotools.jdbc:gt-jdbc-postgis Maven · Affected: All versions | 34.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
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-2fjhWEB
- https://github.com/geotools/geotools/pull/5829WEB
- https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176WEB
- https://github.com/geotools/geotoolsPACKAGE
- https://github.com/geotools/geotools/releases/tag/33.6WEB
- https://github.com/geotools/geotools/releases/tag/34.5WEB
- https://github.com/geotools/geotools/releases/tag/35.1WEB
- https://osgeo-org.atlassian.net/browse/GEOT-7589WEB
- https://osgeo-org.atlassian.net/browse/GEOT-7958WEB
- https://osgeo-org.atlassian.net/browse/GEOT-7959WEB
Frequently Asked Questions
- What is CVE-2026-76904?
- GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-76904?
- CVE-2026-76904 affects org.geotools.jdbc:gt-jdbc-postgis. It has a 4.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-76904 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 10% of EPSS-scored vulnerabilities — 91.2% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host