CVE-2024-36401: Unauthenticated Remote Code Execution in GeoServer via XPath Evaluation
- Vendors
- GeoserverGeotools
CVE-2024-36401 is an unauthenticated remote code execution vulnerability in GeoServer caused by unsafe evaluation of feature property and attribute names as XPath expressions. GeoServer invokes GeoTools APIs that pass attacker-controlled names to commons-jxpath, allowing expressions to invoke Java functionality and execute arbitrary code. Although XPath evaluation is intended for complex feature types, it is incorrectly applied to simple feature types, making default installations vulnerable without requiring Application Schema data stores. Exploitable operations include WFS GetFeature and GetPropertyValue; WMS GetMap, GetFeatureInfo, and GetLegendGraphic; and WPS Execute. Fixed GeoServer releases are 2.22.6, 2.23.6, 2.24.4, and 2.25.2.
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.
Unauthenticated remote attackers can execute arbitrary code and operating-system commands with the privileges of the GeoServer process, compromising the confidentiality, integrity, and availability of resources accessible to that account. Exploitation has enabled malware delivery, backdoor deployment, cryptocurrency mining, DDoS botnet enrollment, and proxy-network recruitment. The vulnerability is actively exploited and appears in CISA's Known Exploited Vulnerabilities catalog.
Mitigation
If you can’t patch tonight, do this now.
If patching is not immediately possible, stop GeoServer or its application server and remove gt-complex-x.y.jar, where x.y matches the installed GeoTools version, then restart. For WAR deployments, unpack the WAR, remove the JAR from WEB-INF/lib, and repack before redeployment. This removes the vulnerable code but can disable dependent extensions and functionality or prevent GeoServer from deploying if the module is required.
Remediation
Patch, then assume compromise.
Upgrade to GeoServer 2.22.6, 2.23.6, 2.24.4, or 2.25.2, according to the deployed release branch, or a later fixed release. Where an applicable vendor patch archive is available for an older release, replace the gt-app-schema, gt-complex, and gt-xsd-core JARs in WEB-INF/lib with the corresponding vendor-provided patched versions.
Exploits
17 exploits validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
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-36401 exploited in the wild?
- Yes. As of Oct 27, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jul 15, 2024.
- Is there a public exploit for CVE-2024-36401?
- Yes. Mallory tracks 17 public exploits or proofs of concept for CVE-2024-36401, the earliest disclosed Jul 1, 2024.
- Is there a patch for CVE-2024-36401?
- Upgrade to GeoServer 2.22.6, 2.23.6, 2.24.4, or 2.25.2, according to the deployed release branch, or a later fixed release. Where an applicable vendor patch archive is available for an older release, replace the gt-app-schema, gt-complex, and gt-xsd-core JARs in WEB-INF/lib with the corresponding vendor-provided patched versions.
- What products are affected by CVE-2024-36401?
- Geoserver and Geotools.
- How severe is CVE-2024-36401?
- CVE-2024-36401 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.8% (100th percentile) as of Oct 27, 2026.
Recent activity
97 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.