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.
Remediation
References
https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b
https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m
Related Vulnerabilities
CVE-2016-10726 Vulnerability in maven package org.dspace:dspace-xmlui
CVE-2023-27899 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2018-12691 Vulnerability in maven package org.onosproject:onos-apps-acl
CVE-2023-46122 Vulnerability in maven package org.scala-sbt:io_2.13
CVE-2021-21429 Vulnerability in maven package org.openapitools:openapi-generator-maven-plugin