{"cve":"CVE-2024-36404","nvd":{"published":"2024-07-02T14:15:13.450","modified":"2026-06-17T07:36:39.237","status":"Deferred","description":"GeoTools is an open source Java library that provides tools for geospatial data. Prior to versions 31.2, 30.4, and 29.6, Remote Code Execution (RCE) is possible if an application uses certain GeoTools functionality to evaluate XPath expressions supplied by user input. Versions 31.2, 30.4, and 29.6 contain a fix for this issue. As a workaround, GeoTools can operate with reduced functionality by removing the `gt-complex` jar from one's application. As an example of the impact, application schema `datastore` would not function without the ability to use XPath expressions to query complex content. Alternatively, one may utilize a drop-in replacement GeoTools jar from SourceForge for versions 31.1, 30.3, 30.2, 29.2, 28.2, 27.5, 27.4, 26.7, 26.4, 25.2, and 24.0. These jars are for download only and are not available from maven central, intended to quickly provide a fix to affected applications.","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-95"],"references":["https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852","https://github.com/geotools/geotools/commit/f0c9961dc4d40c5acfce2169fab92805738de5ea","https://github.com/geotools/geotools/pull/4797","https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w","https://osgeo-org.atlassian.net/browse/GEOT-7587"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:52:00.836172422+00:00"},"epss":{"cve":"CVE-2024-36404","score":0.76065,"percentile":0.99531,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-w3pj-wh35-fq8w","url":"https://osv.dev/vulnerability/GHSA-w3pj-wh35-fq8w","summary":"GeoTools Remote Code Execution (RCE) vulnerability in evaluating XPath expressions","modified":"2026-02-04T04:20:56.470774Z","packages":[{"ecosystem":"Maven","name":"org.geotools:gt-app-schema","purl":"pkg:maven/org.geotools/gt-app-schema","ranges":[">=30.0 <30.4"],"fixed":["30.4"]},{"ecosystem":"Maven","name":"org.geotools:gt-complex","purl":"pkg:maven/org.geotools/gt-complex","ranges":[">=30.0 <30.4"],"fixed":["30.4"]},{"ecosystem":"Maven","name":"org.geotools.xsd:gt-xsd-core","purl":"pkg:maven/org.geotools.xsd/gt-xsd-core","ranges":[">=30.0 <30.4"],"fixed":["30.4"]},{"ecosystem":"Maven","name":"org.geotools:gt-app-schema","purl":"pkg:maven/org.geotools/gt-app-schema","ranges":[">=31.0 <31.2"],"fixed":["31.2"]},{"ecosystem":"Maven","name":"org.geotools:gt-complex","purl":"pkg:maven/org.geotools/gt-complex","ranges":[">=31.0 <31.2"],"fixed":["31.2"]},{"ecosystem":"Maven","name":"org.geotools.xsd:gt-xsd-core","purl":"pkg:maven/org.geotools.xsd/gt-xsd-core","ranges":[">=31.0 <31.2"],"fixed":["31.2"]},{"ecosystem":"Maven","name":"org.geotools:gt-app-schema","purl":"pkg:maven/org.geotools/gt-app-schema","ranges":[">=29.0 <29.6"],"fixed":["29.6"]},{"ecosystem":"Maven","name":"org.geotools:gt-complex","purl":"pkg:maven/org.geotools/gt-complex","ranges":[">=29.0 <29.6"],"fixed":["29.6"]},{"ecosystem":"Maven","name":"org.geotools.xsd:gt-xsd-core","purl":"pkg:maven/org.geotools.xsd/gt-xsd-core","ranges":[">=29.0 <29.6"],"fixed":["29.6"]},{"ecosystem":"Maven","name":"org.geotools:gt-app-schema","purl":"pkg:maven/org.geotools/gt-app-schema","ranges":["<28.6"],"fixed":["28.6"]},{"ecosystem":"Maven","name":"org.geotools:gt-complex","purl":"pkg:maven/org.geotools/gt-complex","ranges":["<28.6"],"fixed":["28.6"]},{"ecosystem":"Maven","name":"org.geotools.xsd:gt-xsd-core","purl":"pkg:maven/org.geotools.xsd/gt-xsd-core","ranges":["<28.6"],"fixed":["28.6"]}]}],"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."]}