CVE-2023-25158 | Unfiltered SQL Injection in Geotools

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.

Published: 2023-02-21 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2023-25158 is rated High Risk (71.3/100): CVSS Critical severity, with medium exploitation likelihood (EPSS 4.65%). Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2023-25158

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-19 3.83% 4.65% +0.83%
2 2026-05-03 4.45% 3.83% -0.62%
3 2026-04-13 4.45%

Full EPSS history (42 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2023-25158

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]

Weakness enumeration for CVE-2023-25158

GitHub Security Advisory for CVE-2023-25158

GHSA-99c3-qc2q-p94m · Severity: critical · Ecosystem: maven — GeoTools OGC Filter SQL Injection Vulnerabilities

Affected software / configurations for CVE-2023-25158

Vendor Product Version Raw CPE
geotools geotools < 24.7 cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
geotools geotools >= 25.0, < 25.7 cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
geotools geotools >= 26.0, < 26.7 cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
geotools geotools >= 27.0, < 27.4 cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
geotools geotools >= 28.0, < 28.2 cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*

References for CVE-2023-25158

cvelogic Threat Intelligence