GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
Critical severity
GitHub Reviewed
Published
Aug 15, 2026
in
geotools/geotools
•
Updated Aug 21, 2026
Package
Affected versions
= 35.0
>= 34.0, < 34.5
>= 30.5, < 33.6
Patched versions
35.1
34.5
33.6
Description
Published to the GitHub Advisory Database
Aug 21, 2026
Reviewed
Aug 21, 2026
Last updated
Aug 21, 2026
Summary
An SQL Injection Vulnerability has been found when executing OGC Filters with PostGIS DataStore implementation:
jsonArrayContainsfunctionRequires 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
Mitigation
No mitigation is available:
Impact
This vulnerability can lead to execution of arbitrary SQL expressions in the database.
References
References