CVE-2023-25158

Unfiltered SQL Injection in Geotools

Published Feb 21, 2023 CVSS 3.1 · 9.8 Critical EPSS 1.1% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2023-0675 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.
Github GHSA Github GHSA GHSA-99c3-qc2q-p94m GeoTools OGC Filter SQL Injection Vulnerabilities
History
Type Values Removed Values Added
First Time appeared Osgeo
Osgeo geotools
CPEs cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:* cpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:*
Vendors & Products Geotools
Geotools geotools
Osgeo
Osgeo geotools
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 10, 2025, 9:07 PM
Reserved
Feb 3, 2023, 4:59 PM
Status
Modified
Published
Feb 21, 2023, 9:15 PM
Modified
Nov 30, 2026, 7:11 PM