CVE-2023-25158

CRITICAL
Published Feb 21, 20233y ago · Modified Jun 17, 20261w ago
9.8 CVSS 3.1
Critical
Find Similar
Published Feb 21, 2023 3y ago
Last Modified Jun 17, 2026 1w ago

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 Details

Base Score
9.8
Exploitability
3.9
Impact
5.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-89 SQL Injection Injection

Affected Products 5

VendorProductVersionRange
geotoolsgeotools* <24.7
geotoolsgeotools*≥25.0  –  <25.7
geotoolsgeotools*≥26.0  –  <26.7
geotoolsgeotools*≥27.0  –  <27.4
geotoolsgeotools*≥28.0  –  <28.2

References 2

  • github.com https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b
    Patch
  • github.com https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m
    MitigationVendor Advisory

Remediation

  • github.com https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b
    Patch