Vulnerability · Published Aug 21, 2026 · Assigned by GitHub_M

CVE-2026-76904GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers

Critical 9.8

In plain English

A critical-severity SQL injection in geotools from geotools. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.0% (higher than 91% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)4.0%top 9.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling2Nuclei, Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.geotools.jdbc:gt-jdbc-postgis35.1GHSA-mqjf-5f49-2fjh
Mavenorg.geotools.jdbc:gt-jdbc-postgis34.5GHSA-mqjf-5f49-2fjh
Mavenorg.geotools.jdbc:gt-jdbc-postgis33.6GHSA-mqjf-5f49-2fjh

Affected products (as reported)

VendorProductVersions
geotools geotools = 35.0>= 34.0, < 34.5>= 30.5, < 33.6

Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References