WaratekVRT Sign in

CVE-2023-25158 GeoTools

Affected softwareGeoTools
Severity9.8 Critical CVSS 3.1 2 scores
Fixed in28.2, 27.4, 26.7, 25.7, 24.7
WeaknessSQL injection (CWE-89)
Published21 Feb 2023
Updated17 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.

  • 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).

EvidenceSourceDetailDate
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

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

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.

Waratek RASP Runtime protection for Java applications

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

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.

VersionScoreBandVectorAssignerType
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
PackageIntroducedFixedLast 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
SourceVendorProductSchemeAffected 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

URLTags
https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b commit
https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m WEB
https://github.com/geotools/geotools PACKAGE

Timeline

VulnCheck KEV: earliest evidence2020-09-22Date of the oldest evidence of exploitation in VulnCheck KEV's record. VulnCheck does not publish the date it listed the CVE.
Published2023-02-21By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.
VulnCheck KEV: latest evidence2026-10-29Date of the newest report, exploit reference or honeypot sighting in VulnCheck KEV's record.