Live threats

All CVEs / Osgeo

CVE-2023-25158Osgeo Geotools

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.3%
probability of exploitation in 30 days · percentile 70
Auth required
No
Published
Feb 21, 2023
Updated
Nov 30, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Geotools.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.geotools:gt-jdbc ≥ 28.0 < 28.2 28.2 —
Maven org.geotools:gt-jdbc ≥ 27.0 < 27.4 27.4 —
Maven org.geotools:gt-jdbc ≥ 26.0 < 26.7 26.7 —
Maven org.geotools:gt-jdbc ≥ 25.0 < 25.7 25.7 —
Maven org.geotools:gt-jdbc < 24.7 24.7 —

Per OSV / GitHub Advisories (GHSA-99c3-qc2q-p94m). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
osgeogeotools< 24.7
osgeogeotools≥ 25.0 < 25.7
osgeogeotools≥ 26.0 < 26.7
osgeogeotools≥ 27.0 < 27.4
osgeogeotools≥ 28.0 < 28.2

Official sources

References

Links published by the sources. Open them with care.