RCE via XPath Injection in 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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.