CVE-2024-36401Geoserver Code Injection
Remote Code Execution (RCE) vulnerability in geoserver
Published Jul 1, 2024 · Updated Nov 30, 2026 · Also known as GHSA-6jj6-gm7p-fcvv
Key Facts
Patch immediately- CVE-2024-36401 is a critical-severity vulnerability (CVSS 9.3 v4) affecting Geoserver, Geotools, org.geoserver:gs-wfs (maven) and 2 more products.
- It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Jul 3, 2024. Public exploit code is available.
- EPSS estimates a 100% probability of exploitation in the next 30 days.
- Fixed versions are available, including Geoserver 2.22.6, Geotools 29.6, org.geoserver:gs-wfs 2.22.6.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v4
9.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A
EPSS (30-day exploit likelihood)
100%
Higher than 99.9% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
86/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Jul 15, 2024
14 days after publication
Federal due date
Aug 5, 2024
Overdue
Ransomware use
Not reported
Attributed actors
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
3
Proof-of-concept links
In-the-wild evidence
20
Reports of active use
Required action (CISA): Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2024-36401
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-36401
- advisoryGHSA advisory
- advisoryhttps://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv
- advisoryhttps://osgeo-org.atlassian.net/browse/GEOT-7587
- patchhttps://github.com/geotools/geotools/pull/4797
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| CISA KEV | Jul 15, 2024 | Aug 5, 2024 | Not reported |
| Industry KEV feed | Jul 3, 2024 | Aug 5, 2024 | Not reported |
| CIRCL KEV | Jul 15, 2024 | Aug 5, 2024 | Not reported |
| ENISA EUVD | Jul 15, 2024 | n/a | Not reported |
Required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Affected Products
18 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GeoserverGeoserver | 2.24.0, 2.25.0, >= 2.23.0, < 2.23.6 | 2.22.6 |
| GeotoolsGeotools | 30.0, 30.0-rc, 31.0, 31.0-rc | 29.6 |
| org.geoserver:gs-wfsmaven | >= 2.24.0 | 2.22.6 |
| org.geoserver:gs-wmsmaven | >= 2.24.0 | 2.22.6 |
| org.geoserver.web:gs-web-appmaven | >= 2.24.0 | 2.22.6 |
Patched Releases
Geoserver
2.22.6
Geotools
29.6
org.geoserver:gs-wfs
2.22.6, 2.23.6, 2.24.4, 2.25.2
org.geoserver:gs-wms
2.22.6, 2.23.6, 2.24.4, 2.25.2
org.geoserver.web:gs-web-app
2.22.6, 2.23.6, 2.24.4, 2.25.2
osgeo geoserver
2.22.6, 2.23.6, 2.24.4, 2.25.2
osgeo geotools
29.6, 30.4, 31.2
Timeline
Publicly disclosed
Jul 1, 2024
Added to Industry KEV feed
Jul 3, 2024
Added to CISA KEV
Jul 15, 2024
Added to CIRCL KEV
Jul 15, 2024
Added to ENISA EUVD
Jul 15, 2024
Last updated
Nov 30, 2026
Weakness Type
- CWE-94 Improper Control of Generation of Code
- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2024-36401
- advisoryGHSA advisory
- advisoryhttps://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv
- advisoryhttps://osgeo-org.atlassian.net/browse/GEOT-7587
FAQ
Common Questions.
GeoServer is an open source server that allows users to share and edit geospatial data.
Affected: Geoserver versions 2.24.0, 2.25.0, >= 2.23.0, < 2.23.6; Geotools versions 30.0, 30.0-rc, 31.0, 31.0-rc; org.geoserver:gs-wfs (maven) versions >= 2.24.0, among others. The full list is in the CVE brief.
It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Jul 3, 2024.
Yes. It was added on Jul 15, 2024 with a federal remediation due date of Aug 5, 2024.
Public exploit code is available.
Fixed versions are available, including Geoserver 2.22.6, Geotools 29.6, org.geoserver:gs-wfs 2.22.6.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2024-36401 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo