Actively exploited vulnerability / CVE-2024-36401
GeoServer: attackers can take over the server without a password
This flaw lets an attacker with no account or password run any command they want on the server hosting GeoServer. That means they could steal or change data, install malicious software and use the server as a way into the rest of your network. It is on the lists of vulnerabilities used in real attacks kept by both CISA (the US cybersecurity agency) and ENISA (the EU cybersecurity agency).
- Identifier
- CVE-2024-36401 · EUVD-2024-2280
- Severity
- Critical (9.8/10)
- On the CISA list (US)
- yes, since 15 July 2024
- Deadline given to US federal agencies
- 5 August 2024
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 99.8% (FIRST's estimate for the next 30 days)
Does it concern you?
GeoServer is an open source server for publishing and editing geographic data such as maps and GIS layers. It is typically used by surveying, land registry, utility, logistics and agriculture companies, and by organisations that show maps online.
The version is shown in the GeoServer admin page under "About & Status", or you can ask whoever manages the server. Affected are versions older than 2.22.6, 2.23 versions before 2.23.6, 2.24 versions before 2.24.4 and 2.25 versions before 2.25.2.
Affected products and versions
- OSGeo GeoServer
- geoserver: before 2.22.6; from 2.23.0 before 2.23.6; from 2.24.0 before 2.24.4; from 2.25.0 before 2.25.2
- geotools: before 29.6; from 30.1 before 30.4; from 31.1 before 31.2
What to do
Update GeoServer to version 2.22.6, 2.23.6, 2.24.4, 2.25.2 or later. If you cannot update right away, ask your administrator to apply the vendor's temporary workaround or take the server offline until it is updated.
Versions that contain the fix: 2.22.6, 2.23.6, 2.24.4, 2.25.2, 29.6, 30.4, 31.2.
The official description
The text below is the description from the public database.
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.
Sources
- CVE Program
- GitHub Advisory Database
- Vendor advisory: github.com
- Vendor advisory: nvd.nist.gov
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.