Maven · org.geotools.jdbc:gt-jdbc-postgis
GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
An SQL Injection Vulnerability has been found when executing OGC Filters with PostGIS DataStore implementation:
jsonArrayContains functionFor PostGIS 12 and greater jsonArrayContains(<column>, <pointer>, <value>) function writes <value> into generated SQL without escaping.
No mitigation is available:
This vulnerability can lead to execution of arbitrary SQL expressions in the database.
Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.
Check my repoSources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.