CVE-2024-36404
Java vulnerability analysis and mitigation

Overview

GeoTools, an open source Java library for geospatial data manipulation, was found to contain a Remote Code Execution (RCE) vulnerability tracked as CVE-2024-36404. The vulnerability affects versions prior to 31.2, 30.4, and 29.6, where Remote Code Execution could occur if an application uses certain GeoTools functionality to evaluate XPath expressions supplied through user input (GitHub Advisory).

Technical details

The vulnerability stems from methods that pass XPath expressions to the commons-jxpath library, which can execute arbitrary code when processing user-supplied input. The affected components include org.geotools.xsd:gt-xsd-core, org.geotools:gt-app-schema, and org.geotools:gt-complex packages. The vulnerability has been assigned a CVSS score of 9.8, indicating critical severity (GitHub Advisory, CERT-EU).

Impact

If exploited, this vulnerability could allow attackers to execute arbitrary code on the application server through specially crafted XPath expressions. This could potentially lead to complete system compromise, as the vulnerability requires no authentication and can be triggered through user input (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in GeoTools versions 31.2, 30.4, and 29.6. As a workaround, users can remove the gt-complex jar from their application, though this will impact functionality such as application schema datastore. Drop-in replacement jars are available on the SourceForge download page for various versions (GitHub Advisory, CERT-EU).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management