// For flags

CVE-2023-25158

Unfiltered SQL Injection in Geotools

Severity Score

9.8
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

1
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

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.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2023-02-03 CVE Reserved
  • 2023-02-21 CVE Published
  • 2023-06-11 First Exploit
  • 2024-08-02 CVE Updated
  • 2024-09-13 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
CWE
  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Geotools
Search vendor "Geotools"
Geotools
Search vendor "Geotools" for product "Geotools"
< 24.7
Search vendor "Geotools" for product "Geotools" and version " < 24.7"
-
Affected
Geotools
Search vendor "Geotools"
Geotools
Search vendor "Geotools" for product "Geotools"
>= 25.0 < 25.7
Search vendor "Geotools" for product "Geotools" and version " >= 25.0 < 25.7"
-
Affected
Geotools
Search vendor "Geotools"
Geotools
Search vendor "Geotools" for product "Geotools"
>= 26.0 < 26.7
Search vendor "Geotools" for product "Geotools" and version " >= 26.0 < 26.7"
-
Affected
Geotools
Search vendor "Geotools"
Geotools
Search vendor "Geotools" for product "Geotools"
>= 27.0 < 27.4
Search vendor "Geotools" for product "Geotools" and version " >= 27.0 < 27.4"
-
Affected
Geotools
Search vendor "Geotools"
Geotools
Search vendor "Geotools" for product "Geotools"
>= 28.0 < 28.2
Search vendor "Geotools" for product "Geotools" and version " >= 28.0 < 28.2"
-
Affected