CVE-2024-36404: RCE via XPath Injection in GeoTools
- Vendor
- Geotools
CVE-2024-36404 is a remote code execution vulnerability in GeoTools, an open source Java library for geospatial data. The vulnerability exists in versions prior to 31.2, 30.4, and 29.6, and is triggered when user-supplied input is evaluated as XPath expressions by certain GeoTools functionality. This allows attackers to inject and execute arbitrary code on the affected system if the application processes untrusted XPath expressions via GeoTools.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an attacker to achieve remote code execution on the target system, potentially leading to full system compromise, data exfiltration, or further lateral movement within the environment.
Mitigation
If you can’t patch tonight, do this now.
As a temporary mitigation, remove the 'gt-complex' jar from the application to disable the vulnerable functionality, though this will reduce application features such as application schema datastore support. Ensure that user input is not directly evaluated as XPath expressions wherever possible.
Remediation
Patch, then assume compromise.
Upgrade GeoTools to version 31.2, 30.4, or 29.6, which contain the fix for this vulnerability. Alternatively, use the drop-in replacement GeoTools jars provided on SourceForge for affected versions if immediate upgrade is not possible.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-36404 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2024-36404 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-36404?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-36404, the earliest disclosed Jun 3, 2026.
- Is there a patch for CVE-2024-36404?
- Upgrade GeoTools to version 31.2, 30.4, or 29.6, which contain the fix for this vulnerability. Alternatively, use the drop-in replacement GeoTools jars provided on SourceForge for affected versions if immediate upgrade is not possible.
- What products are affected by CVE-2024-36404?
- Geotools.
- How severe is CVE-2024-36404?
- CVE-2024-36404 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 76.1% (100th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.