9.8
CRITICAL CVSS 3.1
CVE-2026-76904
GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
Description

GeoTools is an open source Java library that provides tools for geospatial data. Starting in version 30.5 and prior to versions 33.6, 34.5, and 33.6, an SQL Injection Vulnerability is present 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 are available in versions 33.6, 34.5, and 33.6. No known workaround is available. To limit scope of SQL Injection the PostGIS connection pool should be configured with limited rights.

INFO

Published Date :

Aug. 21, 2026, 9:17 p.m.

Last Modified :

Aug. 21, 2026, 9:17 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-76904 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Geotools geotools
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL [email protected]
CVSS 3.1 CRITICAL MITRE-CVE
Solution
Update GeoTools to a patched version to remediate SQL injection vulnerability.
  • Update GeoTools to version 33.6 or 34.5.
  • Apply vendor patches for affected versions.
  • Configure PostGIS connection pool with limited rights.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-76904 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-76904 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-76904 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    Aug. 21, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'geotools', 'product': 'geotools', 'versions': [{'status': 'affected', 'version': '= 35.0'}, {'status': 'affected', 'version': '>= 34.0, < 34.5'}, {'status': 'affected', 'version': '>= 30.5, < 33.6'}]}]
    Added Description GeoTools is an open source Java library that provides tools for geospatial data. Starting in version 30.5 and prior to versions 33.6, 34.5, and 33.6, an SQL Injection Vulnerability is present 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 are available in versions 33.6, 34.5, and 33.6. No known workaround is available. To limit scope of SQL Injection the PostGIS connection pool should be configured with limited rights.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-89
    Added Reference https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176
    Added Reference https://github.com/geotools/geotools/pull/5829
    Added Reference https://github.com/geotools/geotools/releases/tag/33.6
    Added Reference https://github.com/geotools/geotools/releases/tag/34.5
    Added Reference https://github.com/geotools/geotools/releases/tag/35.1
    Added Reference https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh
    Added Reference https://osgeo-org.atlassian.net/browse/GEOT-7589
    Added Reference https://osgeo-org.atlassian.net/browse/GEOT-7958
    Added Reference https://osgeo-org.atlassian.net/browse/GEOT-7959
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.