Remote code executionin geotools.
Weaponized: a Nuclei exploit is public.
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.
- Upgrade geotools to 29.6, 30.4, 31.2 or later, whichever matches your release line.
- Upgrade org.geotools:gt-app-schema (Maven) to 28.6, 29.6, 30.4, 31.2 or later, whichever matches your release line.
- Upgrade org.geotools:gt-complex (Maven) to 28.6, 29.6, 30.4, 31.2 or later, whichever matches your release line.
- Upgrade org.geotools.xsd:gt-xsd-core (Maven) to 28.6, 29.6, 30.4, 31.2 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 27 May 2024CVE ID reserved by GitHub_M.
- 2 Jul 2024Published in the CVE List.
- 2 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Nuclei). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other geotools vulnerabilities
Same weakness: Eval injection
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- github.com x_refsource_MISC
- github.com x_refsource_MISC
- osgeo-org.atlassian.net x_refsource_MISC
- sourceforge.net x_refsource_MISC
- sourceforge.net x_refsource_MISC
- sourceforge.net x_refsource_MISC
- sourceforge.net x_refsource_MISC
- sourceforge.net x_refsource_MISC
- sourceforge.net x_refsource_MISC
- sourceforge.net x_refsource_MISC
- sourceforge.net x_refsource_MISC
- sourceforge.net x_refsource_MISC
- sourceforge.net x_refsource_MISC
- sourceforge.net x_refsource_MISC
Patchminder. CVE-2024-36404: Remote code execution in geotools. https://patchminder.com/cve/cve-2024-36404/ (accessed 5 December 2026).