home / blog

2026-11-26 · critical

CVE-2026-76904: Critical SQL Injection Vulnerability in GeoTools

SQL Injection in GeoTools via jsonArrayContains with PostGIS 12+. Critical vulnerability CVSS 9.8.

CVE-2026-76904: Critical SQL Injection Vulnerability in GeoTools

CVE-2026-76904 is a critical SQL Injection vulnerability in GeoTools, an open source Java library for geospatial data. The flaw affects the jsonArrayContains function in the PostGIS DataStore implementation, which writes values into generated SQL without escaping, allowing arbitrary SQL code execution.

The vulnerability is classified as critical with CVSS score 9.8 and declared severity 'critical'. Patches are available in versions 33.6, 34.5, and 33.6. Signals indicate there is already a public unauthenticated error-based exploit, increasing the risk of active exploitation.

To defend against this vulnerability, immediately apply patches by updating GeoTools to versions 33.6, 34.5, or 33.6. As no known workaround exists, configure the PostGIS connection pool with limited rights to reduce the impact of potential exploitation.

At a glance

What
SQL Injection vulnerability in the jsonArrayContains function of PostGIS DataStore implementation in GeoTools
Severity
Critical (CVSS 9.8)
Affected versions
From version 30.5 prior to versions 33.6, 34.5, and 33.6
Fix
Update to versions 33.6, 34.5, or 33.6
Status
Confirmed, patches available
Action
Apply patches and configure PostGIS connection pool with limited rights

Sources: NVD, CVE-2026-76904

← All articles