CVE-2023-25158: Unfiltered SQL Injection in Geotools
Vulnerability summary
CVE-2023-25158 is a critical (CVSS 9.8) vulnerability in geotools. EPSS estimates a 1.14% chance of exploitation in the next 30 days, higher than 67.7% of scored vulnerabilities.
Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?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.14%
Chance of exploitation in the next 30 days
Percentile
68%
Versus all other CVEs
30-day change
Increase +0.05 pp
From 1.09% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
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
Osgeo1 product
- geotools< 24.7 | ≥ 25.0, < 25.7 | ≥ 26.0, < 26.7 | ≥ 27.0, < 27.4 | ≥ 28.0, < 28.2
3 vendors · 3 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