CVE-2023-25158: geotools SQL Injection
Vulnerability summary
CVE-2023-25158 is a critical (CVSS 9.8) SQL Injection vulnerability in geotools. EPSS estimates a 1.09% chance of exploitation in the next 30 days, higher than 65% of scored vulnerabilities.
Timeline
- 21-02-2023PublishedVulnerability first disclosed.
- 10-03-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.09%
Chance of exploitation in the next 30 days
Percentile
65%
Versus all other CVEs
30-day change
0.00 pp
From 1.09% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Geotools1 product
- geotools< 27.4 | < 24.7 | ≥ 25.0, < 25.7 | ≥ 26.0, < 26.7 | ≥ 27.0, < 27.4 | ≥ 28.0, < 28.2
Org.geotools1 product
- gt-jdbc≥ 28.0, < 28.2 | ≥ 27.0, < 27.4 | ≥ 26.0, < 26.7 | ≥ 25.0, < 25.7 | < 24.7
2 vendors · 2 products
References
4 links- github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94mX Refsource CONFIRMWEBMitigationVendor Advisory
- github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2bX Refsource MISCWEBPatch
- github.com/geotools/geotoolsPACKAGE