Skip to content

CVE-2023-25158 Unfiltered SQL Injection in Geotools

CriticalCVSS 9.8 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total

Description

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

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
geotools < 24.7; = < 27.4; = >= 28.0, < 28.2; >= 25.0, < 25.7 +3 more 24.7, 25.7, 26.7, 27.4, 28.2 Fixed
org.geotools/gt-jdbc(Maven) < 24.7; >= 25.0, < 25.7; >= 26.0, < 26.7; >= 27.0, < 27.4 +1 more 24.7, 25.7, 26.7, 27.4, 28.2 Fixed

Affected products

ProductAffected versionsFixed in
org.geotools/gt-jdbc(Maven) >= 28.0, < 28.2 28.2
org.geotools/gt-jdbc(Maven) >= 27.0, < 27.4 27.4
org.geotools/gt-jdbc(Maven) >= 26.0, < 26.7 26.7
org.geotools/gt-jdbc(Maven) >= 25.0, < 25.7 25.7
org.geotools/gt-jdbc(Maven) < 24.7 24.7
geotools = >= 28.0, < 28.2 No fix listed
geotools = < 27.4 No fix listed
geotools < 24.7 24.7
geotools >= 25.0, < 25.7 25.7
geotools >= 26.0, < 26.7 26.7
geotools >= 27.0, < 27.4 27.4
geotools >= 28.0, < 28.2 28.2

References