Quick answers
- Is CVE-2026-76904 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-76904 being exploited in the wild.
- How severe is CVE-2026-76904?
- Critical severity, with a CVSS score of 9.8, published 21 August 2026.
- Which products and versions are affected?
- org.geotools.jdbc:gt-jdbc-postgis (Maven) ECOSYSTEM:introduced=35.0,fixed=35.1; OSGeo GeoTools 30.5 through 33.5, 34.0 through 34.4, 35.0.
- Is there a fix for CVE-2026-76904?
- Yes. org.geotools.jdbc:gt-jdbc-postgis (Maven): upgrade to 35.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-76904 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-76904?
- Check whether you run org.geotools.jdbc:gt-jdbc-postgis (Maven) or OSGeo GeoTools at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- org.geotools.jdbc:gt-jdbc-postgis (Maven): upgrade to 35.1 or later
# set org.geotools.jdbc:gt-jdbc-postgis to 35.1 in your pom.xml or build.gradle
Technical details
The vulnerability is a classic SQL injection (CWE-89) in the jsonArrayContains OGC filter implementation for PostGIS DataStore. When the jsonArrayContains(<column>, <pointer>, <value>) function constructs SQL queries, the <value> parameter is concatenated into the SQL without parameterized queries or proper escaping, allowing an attacker to inject SQL syntax. The attack vector is network-based with no authentication required, no special privileges, and no user interaction needed. An attacker can exploit this by submitting a crafted OGC filter request to any GeoTools service exposing PostGIS layers. Successful exploitation grants full SQL execution capabilities within the database's permission scope. Patches are available in GeoTools 33.6, 34.5, and 35.1. Mitigation is limited to restricting PostGIS database user permissions.
Affected products
- OSGeo GeoTools 30.5 through 33.5, 34.0 through 34.4, 35.0
Identifiers
- CVE-2026-76904
- GHSA-mqjf-5f49-2fjh
Timeline
- 2026-08-21: disclosed: Advisory published on GitHub
- 2026-08-21: patched: GeoTools 33.6, 34.5, and 35.1 released with fixes