{"api_version":"1","generated_at":"2026-07-23T10:26:34+00:00","cve":"CVE-2023-25158","urls":{"html":"https://cve.report/CVE-2023-25158","api":"https://cve.report/api/cve/CVE-2023-25158.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-25158","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-25158"},"summary":{"title":"CVE-2023-25158","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-02-21 21:15:00","updated_at":"2023-03-02 22:36:00"},"problem_types":["CWE-89"],"metrics":[],"references":[{"url":"https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b","name":"https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-99c3-qc2q-p94m · geotools/geotools@64fb4c4 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m","name":"https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m","refsource":"MISC","tags":[],"title":"OGC Filter SQL Injection Vulnerabilities · Advisory · geotools/geotools · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-25158","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25158","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"25158","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"geotools","cpe5":"geotools","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-25158","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","cweId":"CWE-89"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"geotools","product":{"product_data":[{"product_name":"geotools","version":{"version_data":[{"version_affected":"=","version_value":">= 28.0, < 28.2"},{"version_affected":"=","version_value":"< 27.4"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m","refsource":"MISC","name":"https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m"},{"url":"https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b","refsource":"MISC","name":"https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b"}]},"source":{"advisory":"GHSA-99c3-qc2q-p94m","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-02-21 21:15:00","lastModifiedDate":"2023-03-02 22:36:00","problem_types":["CWE-89"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*","versionStartIncluding":"28.0","versionEndExcluding":"28.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*","versionStartIncluding":"27.0","versionEndExcluding":"27.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*","versionStartIncluding":"26.0","versionEndExcluding":"26.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*","versionStartIncluding":"25.0","versionEndExcluding":"25.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*","versionEndExcluding":"24.7","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}