Skip to content
OpenAdvisories
Critical · 9.8 Scanner template Public exploit CVE-2026-76904 EUVD-2026-64133GHSA-mqjf-5f49-2fjh

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

Published Aug 21, 2026 · Updated Aug 27, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
geotools geotools = 35.0, >= 34.0, < 34.5, >= 30.5, < 33.6 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.geotools.jdbc:gt-jdbc-postgis >= 35.0, < 35.1 35.1 GHSA-mqjf-5f49-2fjh
Maven org.geotools.jdbc:gt-jdbc-postgis >= 34.0, < 34.5 34.5 GHSA-mqjf-5f49-2fjh
Maven org.geotools.jdbc:gt-jdbc-postgis >= 30.5, < 33.6 33.6 GHSA-mqjf-5f49-2fjh

Advisories 1

References