Vulnerability · Published Feb 21, 2023 · Assigned by GitHub_M
CVE-2023-25158Unfiltered SQL Injection in Geotools
Critical 9.8
In plain English
A critical-severity SQL injection in geotools from geotools. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.geotools:gt-jdbc | 28.2 | GHSA-99c3-qc2q-p94m |
| Maven | org.geotools:gt-jdbc | 27.4 | GHSA-99c3-qc2q-p94m |
| Maven | org.geotools:gt-jdbc | 26.7 | GHSA-99c3-qc2q-p94m |
| Maven | org.geotools:gt-jdbc | 25.7 | GHSA-99c3-qc2q-p94m |
| Maven | org.geotools:gt-jdbc | 24.7 | GHSA-99c3-qc2q-p94m |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H