{"cve":"CVE-2023-25158","nvd":{"published":"2023-02-21T21:15:11.157","modified":"2026-06-17T05:40:48.223","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-89"],"references":["https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b","https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m","https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b","https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m"],"products":["geotools:geotools"],"source":"nvd","synced_at":"2026-10-19T21:37:38.595364862+00:00"},"epss":{"cve":"CVE-2023-25158","score":0.01095,"percentile":0.65545,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-99c3-qc2q-p94m","url":"https://osv.dev/vulnerability/GHSA-99c3-qc2q-p94m","summary":"GeoTools OGC Filter SQL Injection Vulnerabilities","modified":"2023-11-08T04:11:50.640650Z","packages":[{"ecosystem":"Maven","name":"org.geotools:gt-jdbc","purl":"pkg:maven/org.geotools/gt-jdbc","ranges":[">=28.0 <28.2"],"fixed":["28.2"]},{"ecosystem":"Maven","name":"org.geotools:gt-jdbc","purl":"pkg:maven/org.geotools/gt-jdbc","ranges":[">=27.0 <27.4"],"fixed":["27.4"]},{"ecosystem":"Maven","name":"org.geotools:gt-jdbc","purl":"pkg:maven/org.geotools/gt-jdbc","ranges":[">=26.0 <26.7"],"fixed":["26.7"]},{"ecosystem":"Maven","name":"org.geotools:gt-jdbc","purl":"pkg:maven/org.geotools/gt-jdbc","ranges":[">=25.0 <25.7"],"fixed":["25.7"]},{"ecosystem":"Maven","name":"org.geotools:gt-jdbc","purl":"pkg:maven/org.geotools/gt-jdbc","ranges":["<24.7"],"fixed":["24.7"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}