9.8

CVE-2023-25158: geotools SQL Injection

CVSS: 9.8v3.1CriticalModified
AliasesGHSA-99c3-qc2q-p94m
Published 21-02-2023Last modified 10-03-2025

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.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
1.09%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 21-02-2023
    PublishedVulnerability first disclosed.
  2. 10-03-2025
    Last 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

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

20-09-202620-10-2026
EPSS score
1.09%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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