CVE-2024-36401: Unauthenticated remote code execution in GeoServer 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 passes attacker-controlled names through GeoTools to commons-jxpath, which can execute arbitrary code during expression evaluation. Although this evaluation is intended for complex feature types using Application Schema data stores, it is incorrectly applied to simple feature types, exposing default installations without requiring complex-feature configuration. Exploitable operations include WFS GetFeature and GetPropertyValue, WMS GetMap, GetFeatureInfo and GetLegendGraphic, and WPS Execute. Fixes are available in GeoServer 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.
Successful exploitation permits arbitrary code and operating-system command execution with the privileges of the GeoServer process, compromising the confidentiality, integrity and availability of accessible data and services. Attackers can deploy malware, steal accessible credentials or geospatial data, disrupt services, and use the server as a foothold into connected networks. Exploitation has been associated with espionage, backdoor deployment, cryptocurrency mining, DDoS botnets and proxy infrastructure. The vulnerability is included 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, remove the gt-complex-x.y.jar file matching the installed GeoTools version, and restart. For WAR deployments, remove the module from the deployed application or unpack and repack the WAR as appropriate. Removing this module eliminates the vulnerable code path but may disable extensions or other functionality, or prevent deployment when 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, as appropriate for the deployed branch, or a later patched release. Where applicable, vendor-provided patch archives can be used to replace the gt-app-schema, gt-complex and gt-xsd-core JARs with patched versions matching the installation. Use the vendor's release-specific patch instructions.
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 Nov 28, 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, as appropriate for the deployed branch, or a later patched release. Where applicable, vendor-provided patch archives can be used to replace the gt-app-schema, gt-complex and gt-xsd-core JARs with patched versions matching the installation.
- 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 Nov 28, 2026.
Recent activity
111 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.