{"id":"CVE-2023-25158","published":"2023-02-21T20:57:47Z","modified":"2025-03-10T21:07:23Z","title":"Unfiltered SQL Injection in Geotools","vendor":"geotools","product":"geotools","tier":"core","eol":null,"affectedVersions":[{"vendor":"geotools","product":"geotools","versions":[">= 28.0, < 28.2","< 27.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-03-10T20:59:06.366397Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"An unfiltered SQL injection flaw exists in GeoTools, an open source Java library for geospatial data, where OGC Filter expressions are executed against JDBCDataStore implementations. An attacker with network access and no authentication or user interaction can inject SQL through these filters, and the flaw can be mitigated by disabling encode functions for PostGIS DataStores or enabling prepared statements for JDBCDataStores until the library is upgraded.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:45Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01095,"percentile":0.66209,"date":"2026-11-24","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2020-09-22","exploitedFirstSeen":"2020-09-22","ransomware":false,"evidence":[{"url":"https://isc.sans.edu/feeds/urlsummary.txt","date":"2020-09-22"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2023-25158","date":"2026-08-19"},{"url":"https://previdian.com/CVE-2023-25158","date":"2026-08-19"}],"evidenceTotal":3,"provenance":"source"},"exploited":true,"otx":{"pulseCount":1,"pulses":[{"name":"GeoServer jsonArrayContains Unauth SQLi→RCE (GHSA-mqjf-5f49-2fjh) Active Probing","url":"https://otx.alienvault.com/pulse/6a8547beb4c9d3a3465acfad","created":"2026-08-19"}],"provenance":"machine"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.geotools:gt-jdbc","vulnerableRanges":[">=28.0, <28.2",">=27.0, <27.4",">=26.0, <26.7",">=25.0, <25.7","<24.7"],"patched":["28.2","27.4","26.7","25.7","24.7"],"from":["GHSA-99c3-qc2q-p94m"],"provenance":"source"}],"advisories":[{"id":"GHSA-99c3-qc2q-p94m","url":"https://github.com/advisories/GHSA-99c3-qc2q-p94m","severity":"CRITICAL","ecosystem":"Maven","package":"org.geotools:gt-jdbc","vulnerableRanges":[">=28.0, <28.2"],"patched":["28.2"],"provenance":"source","from":"GHSA"},{"id":"GHSA-99c3-qc2q-p94m","url":"https://github.com/advisories/GHSA-99c3-qc2q-p94m","severity":"CRITICAL","ecosystem":"Maven","package":"org.geotools:gt-jdbc","vulnerableRanges":[">=27.0, <27.4"],"patched":["27.4"],"provenance":"source","from":"GHSA"},{"id":"GHSA-99c3-qc2q-p94m","url":"https://github.com/advisories/GHSA-99c3-qc2q-p94m","severity":"CRITICAL","ecosystem":"Maven","package":"org.geotools:gt-jdbc","vulnerableRanges":[">=26.0, <26.7"],"patched":["26.7"],"provenance":"source","from":"GHSA"},{"id":"GHSA-99c3-qc2q-p94m","url":"https://github.com/advisories/GHSA-99c3-qc2q-p94m","severity":"CRITICAL","ecosystem":"Maven","package":"org.geotools:gt-jdbc","vulnerableRanges":[">=25.0, <25.7"],"patched":["25.7"],"provenance":"source","from":"GHSA"},{"id":"GHSA-99c3-qc2q-p94m","url":"https://github.com/advisories/GHSA-99c3-qc2q-p94m","severity":"CRITICAL","ecosystem":"Maven","package":"org.geotools:gt-jdbc","vulnerableRanges":["<24.7"],"patched":["24.7"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2023-0675","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-0675","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2020-09-22","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://isc.sans.edu/feeds/urlsummary.txt","provenance":"source"},{"date":"2023-02-21","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2023-25158","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":55.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 2254 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":13.24,"detail":"percentile 0.6621"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":0.68,"detail":"1 pulse"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-geotools-cve-2023-25158","children":[{"from":"CVE-2023-25158","to":"CVE-2026-76904","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["modules/plugin/jdbc/jdbc-postgis/src/main/java/org/geotools/data/postgis/FilterToSqlHelper.java"],"commits":["https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b","https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same product + CWE + description similarity"}]}]}}