Loading...
Skip to main content

CVE-2026-76904

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

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)

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

  • CVE-2026-64849
    CRITICAL

    MLflow: Unauthenticated full-read SSRF in webhook delivery: _validate_webhook_url bypassed via unvalidated HTTP redirects (and DNS rebinding)

  • CVE-2026-55209
    CRITICAL

    resdata has Classic Buffer Overflow, Improper Validation of Array Index, NULL Pointer Dereference and Out-of-bounds Read

  • CVE-2026-77414
    CRITICAL

    JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions

  • CVE-2026-77415
    CRITICAL

    JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions

  • CVE-2026-77413
    CRITICAL

    JSONata: Arbitrary Code Execution via crafted JSONata expressions

  • CVE-2026-54061
    CRITICAL

    Dgraph Alpha group stores can be replaced via unauthenticated external snapshot import

  • CVE-2026-55445
    CRITICAL

    Qinglong has an incomplete fix for CVE-2026-3965: Improper Authentication

  • CVE-2026-61539
    CRITICAL

    Xinference vulnerable to remote code execution via unsafe `eval()` in Llama3 tool-call parsing

Check if you're affected

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

Scan Your Dependencies