9.8

CVE-2023-25158: Unfiltered SQL Injection in Geotools

Modified
AliasesGHSA-99c3-qc2q-p94m
Published 21-02-2023Last modified 10-03-2025

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.

Priority
Prioritisesevere

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?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
1.14%
0%100%
Low · +0.05 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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.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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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