CVE-2024-36401
Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver
Exploited in the wild. In CISA KEV since 2024‑07‑15. A vendor fix is available.
What to do
The vendor has published a fix. Version details are below where the sources state them.
Steps
Written by AI from the record- Check your GeoServer version and whether it is older than 2.22.6, 2.23.6, 2.24.4, or 2.25.2.
- If you are using GeoServer, upgrade the affected modules to the fixed release that matches your line: gs-web-app 2.24.4 (or 2.25.2), gs-wfs 2.24.4 (or 2.25.2), and gs-wms 2.24.4 (or 2.25.2).
- If your GeoServer stack includes GeoTools, upgrade GeoTools to 29.6.
- If you cannot patch immediately, remove the vulnerable
gt-complex-x.y.jarfile from GeoServer (for example,gt-complex-31.1.jarif running 2.25.1), and be prepared for possible functionality loss or deployment issues.
What it is
From the CVE record
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to versions 2.22.6, 2.23.6, 2.24.4, and 2.25.2, multiple OGC request parameters allow Remote Code Execution (RCE) by unauthenticated users through specially crafted input against a default GeoServer installation due to unsafely evaluating property names as XPath expressions. The GeoTools library API that GeoServer calls evaluates property/attribute names for feature types in a way that unsafely passes them to the commons-jxpath library which can execute arbitrary code when evaluating XPath expressions. This XPath evaluation is intended to be used only by complex feature types (i.e., Application Schema data stores) but is incorrectly being applied to simple feature types as well which makes this vulnerability apply to **ALL** GeoServer instances. No public PoC is provided but this vulnerability has been confirmed to be exploitable through WFS GetFeature, WFS GetPropertyValue, WMS GetMap, WMS GetFeatureInfo, WMS GetLegendGraphic and WPS Execute requests. This vulnerability can lead to executing arbitrary code. Versions 2.22.6, 2.23.6, 2.24.4, and 2.25.2 contain a patch for the issue. A workaround exists by removing the `gt-complex-x.y.jar` file from the GeoServer where `x.y` is the GeoTools version (e.g., `gt-complex-31.1.jar` if running GeoServer 2.25.1). This will remove the vulnerable code from GeoServer but may break some GeoServer functionality or prevent GeoServer from deploying if the gt-complex module is needed.
In plain language
Written by AI from the recordCVE-2024-36401 is a critical, unauthenticated remote code execution flaw in GeoServer (and some GeoTools components) that can let an internet attacker take over your server; if you run GeoServer versions earlier than the fixed releases, you should act immediately.
Unauthenticated Remote Code Execution in GeoServer arises from unsafe evaluation of “property name” values as XPath expressions in various OGC request parameters, allowing arbitrary code execution over the network; GeoServer versions prior to 2.22.6, 2.23.6, 2.24.4, and 2.25.2 are affected.
If you're affected
- Full GeoServer server takeover
- Malicious code execution
- Data theft from served services
- Service disruption
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Listed as exploited in the wild since 2024-07-15.
US federal agencies must remediate by 2024-08-05.
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
- Public exploits
2 sources with a proof of concept or module.
Exploit links, PoCs and Metasploit modules after sign-in- EPSS
100% chance of exploitation activity in the next 30 days, which ranks it in the 99th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
The patch came 133 days before any public exploit.
- Analysis publishedGeoServer's jsonArrayContains Zero-Day: Attackers Moved Faster Than the Patch
- OpenVAS check added
- Public exploit / PoCsource: github-pocnuclei check added
- Patch availableworkaround available, record updated
- Added to CISA KEV
- Publishedweakness classified, att&ck mapped
Affected products
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored 9.8 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required NoneNo authentication required — anyone can exploit this
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
References in the record
- github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv
- github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w
- github.com/geotools/geotools/pull/4797
And 10 more references. See all after sign-in
In the news
- GeoNetwork Fixes Unauthenticated RCE Chain Affecting Government Geoportal Backends
- GeoServer Zero-Day Targeted in Active Exploitation Attempts, Can Lead to RCE
- Rondo Meets Geoserver - SANS Internet Storm Center
- New SharkLoader Malware Deploys Cobalt Strike in StrikeShark Cyberattacks
- StrikeShark: investigating a new campaign delivering Cobalt Strike through SharkLoader
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next exploited one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Maven, not every advisory. This one: actively exploited.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI