Skip to main content

CVE-2026-76904 — Vulnerability in gt-jdbc-postgis — CVE Details

CRITICAL

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

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

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.

Check my pom.xml

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

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.

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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: Maven (1).

PackageFixed In
org.geotools.jdbc:gt-jdbc-postgis Maven · Affected: All versions33.6
org.geotools.jdbc:gt-jdbc-postgis Maven · Affected: 35.035.1
org.geotools.jdbc:gt-jdbc-postgis Maven · Affected: 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. 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

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
3.98%
EPSS percentile: 91.2

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

GHSA-mqjf-5f49-2fjh

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml