{"schemaVersion":3,"id":"CVE-2024-36404","aliases":["GHSA-w3pj-wh35-fq8w"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-07-02T13:39:35.716Z","modified":"2024-08-02T03:37:05.024Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.76065,"percentile":0.9953,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.76065},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.76065,"percentile":0.9953}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.76065,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.76065,"percentile":0.9953}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')","description":"The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. \"eval\").","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/95.html"}],"affected":[{"vendor":"geotools","product":"geotools","name":"geotools","label":"geotools","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 29.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 30.0, < 30.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 31.0, < 31.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 29.6 | ≥ 30.0, < 30.4 | ≥ 31.0, < 31.2","eol":null,"hubHref":"/vendor/geotools/geotools"},{"vendor":"org.geotools","product":"gt-app-schema","name":"org.geotools:gt-app-schema","label":"gt-app-schema","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.geotools/gt-app-schema","purlType":"maven","versions":[{"text":"≥ 30.0, < 30.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 31.0, < 31.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 29.0, < 29.6","noFixRecorded":false,"fixedIn":null},{"text":"< 28.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 30.0, < 30.4 | ≥ 31.0, < 31.2 | ≥ 29.0, < 29.6 | < 28.6","eol":null,"hubHref":null},{"vendor":"org.geotools","product":"gt-complex","name":"org.geotools:gt-complex","label":"gt-complex","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.geotools/gt-complex","purlType":"maven","versions":[{"text":"≥ 30.0, < 30.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 31.0, < 31.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 29.0, < 29.6","noFixRecorded":false,"fixedIn":null},{"text":"< 28.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 30.0, < 30.4 | ≥ 31.0, < 31.2 | ≥ 29.0, < 29.6 | < 28.6","eol":null,"hubHref":null},{"vendor":"org.geotools.xsd","product":"gt-xsd-core","name":"org.geotools.xsd:gt-xsd-core","label":"gt-xsd-core","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.geotools.xsd/gt-xsd-core","purlType":"maven","versions":[{"text":"≥ 30.0, < 30.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 31.0, < 31.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 29.0, < 29.6","noFixRecorded":false,"fixedIn":null},{"text":"< 28.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 30.0, < 30.4 | ≥ 31.0, < 31.2 | ≥ 29.0, < 29.6 | < 28.6","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w","label":"github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/geotools/geotools/pull/4797","label":"github.com/geotools/geotools/pull/4797","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/geotools/geotools/commit/f0c9961dc4d40c5acfce2169fab92805738de5ea","label":"github.com/geotools/geotools/commit/f0c9961dc4d40c5acfce2169fab92805738de5ea","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852","label":"github.com/Warxim/CVE-2022-41852?tab=readme-ov-file","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7587","label":"osgeo-org.atlassian.net/browse/GEOT-7587","hostname":"osgeo-org.atlassian.net","tags":["X Refsource MISC","WEB"]},{"url":"https://sourceforge.net/projects/geotools/files/GeoTools%2024%20Releases/24.0/geotools-24.0-patches.zip/download","label":"sourceforge.net/projects/…","hostname":"sourceforge.net","tags":["X Refsource MISC","WEB"]},{"url":"https://sourceforge.net/projects/geotools/files/GeoTools%2025%20Releases/25.2/geotools-25.2-patches.zip/download","label":"sourceforge.net/projects/…","hostname":"sourceforge.net","tags":["X Refsource MISC","WEB"]},{"url":"https://sourceforge.net/projects/geotools/files/GeoTools%2026%20Releases/26.4","label":"sourceforge.net/projects/geotools/files/GeoTools%2026%20Releases/26.4","hostname":"sourceforge.net","tags":["X Refsource MISC","WEB"]},{"url":"https://sourceforge.net/projects/geotools/files/GeoTools%2026%20Releases/26.7/geotools-26.7-patches.zip/download","label":"sourceforge.net/projects/…","hostname":"sourceforge.net","tags":["X Refsource MISC","WEB"]},{"url":"https://sourceforge.net/projects/geotools/files/GeoTools%2027%20Releases/27.4/geotools-27.4-patches.zip/download","label":"sourceforge.net/projects/…","hostname":"sourceforge.net","tags":["X Refsource MISC","WEB"]},{"url":"https://sourceforge.net/projects/geotools/files/GeoTools%2027%20Releases/27.5/geotools-27.5-patches.zip/download","label":"sourceforge.net/projects/…","hostname":"sourceforge.net","tags":["X Refsource MISC","WEB"]},{"url":"https://sourceforge.net/projects/geotools/files/GeoTools%2028%20Releases/28.2/geotools-28.2-patches.zip/download","label":"sourceforge.net/projects/…","hostname":"sourceforge.net","tags":["X Refsource MISC","WEB"]},{"url":"https://sourceforge.net/projects/geotools/files/GeoTools%2029%20Releases/29.2/geotools-29.2-patches.zip/download","label":"sourceforge.net/projects/…","hostname":"sourceforge.net","tags":["X Refsource MISC","WEB"]},{"url":"https://sourceforge.net/projects/geotools/files/GeoTools%2030%20Releases/30.2/geotools-30.2-patches.zip/download","label":"sourceforge.net/projects/…","hostname":"sourceforge.net","tags":["X Refsource MISC","WEB"]},{"url":"https://sourceforge.net/projects/geotools/files/GeoTools%2030%20Releases/30.3/geotools-30.3-patches.zip/download","label":"sourceforge.net/projects/…","hostname":"sourceforge.net","tags":["X Refsource MISC","WEB"]},{"url":"https://sourceforge.net/projects/geotools/files/GeoTools%2031%20Releases/31.1","label":"sourceforge.net/projects/geotools/files/GeoTools%2031%20Releases/31.1","hostname":"sourceforge.net","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36404","label":"nvd.nist.gov/vuln/detail/CVE-2024-36404","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/geotools/geotools","label":"github.com/geotools/geotools","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CVE-2024-36401"]},"timeline":[{"kind":"published","date":"2024-07-02T13:39:35.716Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T03:37:05.024Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T03:59:03.163Z","stale":false,"partial":false}}