CVE-2024-36401Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver
- 9.8CriticalCVSS base score
- 99.8%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- YesKnown exploitedin CISA's KEV since 15 Jul 2024
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
Description
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.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as OSGeo GeoServer GeoTools Eval Injection Vulnerability.
- Added
- 15 Jul 2024
- Fix due (US federal)
- 5 Aug 2024
- Used by ransomware
- Not known
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 15 Jul 2024.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and a Nuclei template for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits2
Metasploit modules1 module
- Geoserver unauthenticated Remote Code Execution (Metasploit module) (opens in a new tab)
exploit/multi/http/geoserver_unauth_rce_cve_2024_36401Rank excellentdisclosed 1 Jul 2024
Nuclei templates1 template
- GeoServer RCE in Evaluating Property Name Expressions (Nuclei template) (opens in a new tab)
http/cves/2024/CVE-2024-36401.yamlSeverity critical
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By GitHub_M
- 35 days later
· 35 days later
Published
- 14 days later
· 14 days later
Added to CISA KEV
Known exploited in the wild
- 15 months later
· 15 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 99.8% · top 0.1% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.geoserver.web:gs-web-appGHSA-6jj6-gm7p-fcvv (opens in a new tab)
- Mavenorg.geoserver:gs-wfsGHSA-6jj6-gm7p-fcvv (opens in a new tab)
- Mavenorg.geoserver:gs-wmsGHSA-6jj6-gm7p-fcvv (opens in a new tab)
References
References7
- https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/geotools/geotools/pull/4797 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852 (opens in a new tab)x_refsource_MISCx_transferred
- https://osgeo-org.atlassian.net/browse/GEOT-7587 (opens in a new tab)x_refsource_MISCx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401 (opens in a new tab)government-resource
- https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-2280 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-6jj6-gm7p-fcvv (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-36401)Record last updated .