Loading...
Skip to main content

CVE-2026-76904 — Vulnerability in...

CRITICAL

GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers

Published August 21, 2026Updated August 21, 2026Source: osv

Summary

### Summary An SQL Injection Vulnerability has been found 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 * 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 * https://osgeo-org.atlassian.net/browse/GEOT-7958 * https://osgeo-org.atlassian.net/browse/GEOT-7959 * https://github.com/geotools/geotools/pull/5829 * https://osgeo-org.atlassian.net/browse/GEOT-7589

Advisory Timeline

  • First published August 21, 2026 (52 days ago).
  • Last revised August 21, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.geotools.jdbc:gt-jdbc-postgis to 33.6 or later
<!-- Update pom.xml dependency version to 33.6 for org.geotools.jdbc:gt-jdbc-postgis -->
Maven
Update org.geotools.jdbc:gt-jdbc-postgis to 35.1 or later
<!-- Update pom.xml dependency version to 35.1 for org.geotools.jdbc:gt-jdbc-postgis -->
Maven
Update org.geotools.jdbc:gt-jdbc-postgis to 34.5 or later
<!-- Update pom.xml dependency version to 34.5 for org.geotools.jdbc:gt-jdbc-postgis -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.geotools.jdbc:gt-jdbc-postgis
maven
All versions33.6
org.geotools.jdbc:gt-jdbc-postgis
maven
35.035.1
org.geotools.jdbc:gt-jdbc-postgis
maven
All versions34.5

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-76904 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-mqjf-5f49-2fjh

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies