CVE-2023-25158 GeoTools
| Affected software | GeoTools |
|---|---|
| Severity | 9.8 Critical CVSS 3.1 2 scores |
| Fixed in | 28.2, 27.4, 26.7, 25.7, 24.7 |
| Weakness | SQL injection (CWE-89) |
| Published | 21 Feb 2023 |
| Updated | 17 Jun 2026 |
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.
Exploitation status
Exploited
Real-world exploitation reported by VulnCheck KEV. CISA has not confirmed it.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV listed Exploitation reported in the wild. 1 citation · honeypot sightings · 1 exploit · earliest 2020-09-22.
- CISA Vulnrichment exploitation: none
- Indexed PoC none indexed
- EPSS 1.1% chance in 30 days
VulnCheck KEV
Exploitation evidence from VulnCheck Known Exploited Vulnerabilities (VulnCheck KEV), used under VulnCheck's community terms. View CVE-2023-25158 in VulnCheck (free account).
| Evidence | Source | Detail | Date |
|---|---|---|---|
| Honeypot sighting | SANS DShield sensors | Exploitation attempts seen on 1 day | 2020-09-22 |
| Honeypot sighting | Shadowserver honeypots | Exploitation attempts seen on 11 days | 2026-08-19 to 2026-10-29 |
| Reported exploitation | previdian.com | /CVE-2023-25158 | 2026-08-19 |
| Exploit reference | VulnCheck XDB bbe6519782d5 | Exploit type: initial-access | 2023-06-11 |
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full SQL injection
- Action available security rule
- Review automated Inferred
- Record active
| Decided by | A vulnerability class already blocked by an ARMR security rule |
|---|---|
| Finding | Protected by Waratek's ARMR sql-injection security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-89: SQL Injection. |
| Candidate fix | https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b : a commit: the change itself |
How to mitigate CVE-2023-25158
Upgrade GeoTools to a release that fixes it: 28.2, 27.4, 26.7, 25.7 or 24.7. Until you can, Waratek RASP blocks exploitation with its SQL injection rule. It runs inside the Java application, with no code changes.
CVSS
9.8 CRITICAL
v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2 metrics
CVSS
9.8 CRITICAL v3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2 metrics
We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.
| Version | Score | Band | Vector | Assigner | Type | |
|---|---|---|---|---|---|---|
| CVSS 3.1 | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
security-advisories@github.com | Secondary | published |
| CVSS 3.1 | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
NVD | Primary |
Affected software and releases
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
org.geotools:gt-jdbc |
28.0 | 28.2 |
unbounded |
org.geotools:gt-jdbc |
27.0 | 27.4 |
unbounded |
org.geotools:gt-jdbc |
26.0 | 26.7 |
unbounded |
org.geotools:gt-jdbc |
25.0 | 25.7 |
unbounded |
org.geotools:gt-jdbc |
0 | 24.7 |
unbounded |
Products and versions
2 products, 10 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| nvd | geotools | geotools | generic | < 24.7 · ≥ 25.0 and < 25.7 · ≥ 26.0 and < 26.7 · ≥ 27.0 and < 27.4 · ≥ 28.0 and < 28.2 |
| osv | org.geotools | gt-jdbc | generic | < 24.7 · ≥ 25.0 and < 25.7 · ≥ 26.0 and < 26.7 · ≥ 27.0 and < 27.4 · ≥ 28.0 and < 28.2 |
References
Timeline
Timeline
| VulnCheck KEV: earliest evidence | 2020-09-22 | Date of the oldest evidence of exploitation in VulnCheck KEV's record. VulnCheck does not publish the date it listed the CVE. |
|---|---|---|
| Published | 2023-02-21 | By the CVE Program. |
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |
| VulnCheck KEV: latest evidence | 2026-10-29 | Date of the newest report, exploit reference or honeypot sighting in VulnCheck KEV's record. |