Skip to main content
← All vulnerabilities
CVE-2023-25158GHSA-99C3-QC2Q-P94M

Unfiltered SQL Injection in Geotools

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 28.2, 27.4, 26.7, 25.7, 24.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • geotools geotools

    From 28.0 · fixed in 28.2; fixed in 27.4

  • org.geotools:gt-jdbcMaven

    From 28.0 · fixed in 28.2

  • org.geotools:gt-jdbcMaven

    From 27.0 · fixed in 27.4

  • org.geotools:gt-jdbcMaven

    From 26.0 · fixed in 26.7

  • org.geotools:gt-jdbcMaven

    From 25.0 · fixed in 25.7

  • org.geotools:gt-jdbcMaven

    fixed in 24.7

References 2

GitHub · geotools/geotools