SQL Injection in Geotools

CVE-2023-25158

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.

Vulnerability class: SQL Injection

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS 0.011, 66.1th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Geotools — versions >= 28.0, < 28.2, < 27.4

Weakness classification (CWE)

Public exploits and proof-of-concept code

1 public repository with exploit or proof-of-concept code for this CVE:

Also mentioned in 5 other repositories (dr-cable-tv/Geoserver-CVE-2023-25157, functionofpwnosec/functionofpwnosec, IGSIND/Qualys, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References