CVE-2024-36404GeoTools Remote Code Execution (RCE) vulnerability in evaluating XPath expressions
- 9.8CriticalCVSS base score
- 76.1%Exploitation in 30 daysEPSS · top 0.5% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template for it.
Show the exploits1
Nuclei templates1 template
- GeoServer and GeoTools - Remote Code Execution (Nuclei template) (opens in a new tab)
http/cves/2024/CVE-2024-36404.yamlSeverity critical
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By GitHub_M
- 36 days later
· 36 days later
Published
- 31 days later
· 31 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Deferred | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 76.1% · top 0.5% of all CVEs (14 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.geotools.xsd:gt-xsd-coreGHSA-w3pj-wh35-fq8w (opens in a new tab)
- Mavenorg.geotools:gt-app-schemaGHSA-w3pj-wh35-fq8w (opens in a new tab)
- Mavenorg.geotools:gt-complexGHSA-w3pj-wh35-fq8w (opens in a new tab)
References
References16
- https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/geotools/geotools/pull/4797 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/geotools/geotools/commit/f0c9961dc4d40c5acfce2169fab92805738de5ea (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852 (opens in a new tab)x_refsource_MISCx_transferred
- https://osgeo-org.atlassian.net/browse/GEOT-7587 (opens in a new tab)x_refsource_MISCx_transferred
- https://sourceforge.net/projects/geotools/files/GeoTools%2024%20Releases/24.0/geotools-24.0-patches.zip/download (opens in a new tab)x_refsource_MISCx_transferred
- https://sourceforge.net/projects/geotools/files/GeoTools%2025%20Releases/25.2/geotools-25.2-patches.zip/download (opens in a new tab)x_refsource_MISCx_transferred
- https://sourceforge.net/projects/geotools/files/GeoTools%2026%20Releases/26.4 (opens in a new tab)x_refsource_MISCx_transferred
- https://sourceforge.net/projects/geotools/files/GeoTools%2026%20Releases/26.7/geotools-26.7-patches.zip/download (opens in a new tab)x_refsource_MISCx_transferred
- https://sourceforge.net/projects/geotools/files/GeoTools%2027%20Releases/27.4/geotools-27.4-patches.zip/download (opens in a new tab)x_refsource_MISCx_transferred
- https://sourceforge.net/projects/geotools/files/GeoTools%2027%20Releases/27.5/geotools-27.5-patches.zip/download (opens in a new tab)x_refsource_MISCx_transferred
- https://sourceforge.net/projects/geotools/files/GeoTools%2028%20Releases/28.2/geotools-28.2-patches.zip/download (opens in a new tab)x_refsource_MISCx_transferred
- https://sourceforge.net/projects/geotools/files/GeoTools%2029%20Releases/29.2/geotools-29.2-patches.zip/download (opens in a new tab)x_refsource_MISCx_transferred
- https://sourceforge.net/projects/geotools/files/GeoTools%2030%20Releases/30.2/geotools-30.2-patches.zip/download (opens in a new tab)x_refsource_MISCx_transferred
- https://sourceforge.net/projects/geotools/files/GeoTools%2030%20Releases/30.3/geotools-30.3-patches.zip/download (opens in a new tab)x_refsource_MISCx_transferred
- https://sourceforge.net/projects/geotools/files/GeoTools%2031%20Releases/31.1 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-0233 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-w3pj-wh35-fq8w (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-36404)Record last updated .