Skip to content
OpenAdvisories
Critical · 9.8 CVE-2023-25158 EUVD-2023-0675GHSA-99c3-qc2q-p94m

Unfiltered SQL Injection in Geotools

Published Feb 21, 2023 · Updated Mar 10, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
geotools geotools >= 28.0, < 28.2, < 27.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.geotools:gt-jdbc >= 28.0, < 28.2 28.2 GHSA-99c3-qc2q-p94m
Maven org.geotools:gt-jdbc >= 27.0, < 27.4 27.4 GHSA-99c3-qc2q-p94m
Maven org.geotools:gt-jdbc >= 26.0, < 26.7 26.7 GHSA-99c3-qc2q-p94m
Maven org.geotools:gt-jdbc >= 25.0, < 25.7 25.7 GHSA-99c3-qc2q-p94m
Maven org.geotools:gt-jdbc < 24.7 24.7 GHSA-99c3-qc2q-p94m

Advisories 1

References