Unfiltered SQL Injection in Geotools
geotools
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.geotools:gt-jdbc Maven |
|
|
geotools
| Product | Affected | Fixed in |
|---|---|---|
| org.geotools:gt-jdbc Maven |
|
|
24.7GeoTools is an open source Java library that provides tools for geospatial data. GeoTools includes support for OGC Filter expression language parsing, encoding and execution against a range of datastore. SQL Injection Vulnerabilities have been found when executing OGC Filters with JDBCDataStore implementations. Users are advised to upgrade to either version 27.4 or to 28.2 to resolve this issue. Users unable to upgrade may disable `encode functions` for PostGIS DataStores or enable `prepared statements` for JDBCDataStores as a partial mitigation.
From the CVE record · GitHub_M
GeoTools is vulnerable to SQL injection when executing OGC Filters with JDBCDataStore implementations. An attacker may be able to inject SQL through those filters; the input does not specify whether network access, authentication, or user interaction is required.
Check applications using Maven org.geotools:gt-jdbc versions below 24.7, 25.0–25.6, 26.0–26.6, 27.0–27.3, or 28.0–28.1.