--- title: "CVE-2024-36401: Remote Code Execution (RCE) vulnerability… | CubePath" 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…" language: en source: https://cubepath.com/security/cve/CVE-2024-36401 --- # CVE-2024-36401: Remote Code Execution (RCE) vulnerability… | CubePath ## 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. Official description from the CVE record, published by GitHub\_M. Copyright © 1999-2026 The MITRE Corporation. See [/security/cve/legal](https://cubepath.com/security/cve/legal) for the CVE license. [View the record on cve.org](https://www.cve.org/CVERecord?id=CVE-2024-36401) ## Key data ### CVSS 3.1 Critical 9.8 Score published by GitHub\_M in the CVE record. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | Metric | Value | What it means | | ---------------------- | --------- | ----------------------------------------------------------------------------------- | | Attack vector | Network | The vulnerable component can be reached over a network, possibly from the Internet. | | Attack complexity | Low | No special conditions are needed. The attack can be repeated at will. | | Privileges required | None | No account or privileges are needed. | | User interaction | None | No action from any user is needed. | | Scope | Unchanged | The impact stays within the vulnerable component. | | Confidentiality impact | High | Serious or total effect on the secrecy of data. | | Integrity impact | High | Serious or total effect on the trustworthiness of data. | | Availability impact | High | Serious or total effect on availability. | CVSS is owned and managed by FIRST.Org, Inc. (FIRST) and is used by permission. Each CVSS score on this site is shown together with its vector string, as published in the CVE record by the source named next to it. Learn more at [first.org/cvss](https://www.first.org/cvss/) . ### EPSS Exploit Prediction Scoring System by FIRST: an estimate of the probability that exploitation activity will be observed in the next 30 days. Score 0.99813 (99.8% probability) Percentile 99.95% Scores of Nov 10, 2026 Model v2026.06.15 ### CISA Known Exploited Vulnerabilities This CVE is listed in the CISA KEV catalog. Name in the catalog OSGeo GeoServer GeoTools Eval Injection Vulnerability Added to the catalog Jul 15, 2024 Federal due date Aug 5, 2024 ### CISA assessment as of Jul 13, 2024 Stakeholder-Specific Vulnerability Categorization (SSVC) decision points added by CISA. Exploitation Recorded by CISA as active Automatable yes Technical impact total ### Weakness (CWE) CWE catalog version 5.0. CWE names: Copyright © 2006-2026, The MITRE Corporation. See [/security/cve/legal](https://cubepath.com/security/cve/legal) for the CWE license. - [CWE-95](https://cwe.mitre.org/data/definitions/95.html) Improper Neutralization of Directives in Dynamically Evaluated Code ## Affected products Products listed in the CVE record, as the CNA published them. - geoserver - affected: >= 2.23.0, < 2.23.6 - affected: >= 2.24.0, < 2.24.4 - affected: >= 2.25.0, < 2.25.2 - affected: < 2.22.6 ## References Links listed in the CVE record. They lead to other sites, which CubePath does not control. - [github.com/geoserver/geoserver/security/advisories/GHSA-6jj…](https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv) - [github.com/geotools/geotools/security/advisories/GHSA-w3pj-…](https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w) - [github.com/geotools/geotools/pull/4797](https://github.com/geotools/geotools/pull/4797) - [github.com/Warxim/CVE-2022-41852?tab=readme-ov-file](https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852) - [osgeo-org.atlassian.net/browse/GEOT-7587](https://osgeo-org.atlassian.net/browse/GEOT-7587) - [vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401](https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401) ## Timeline 1. ID reserved May 27, 2024 2. Record published Jul 1, 2024 3. Added to CISA KEV Jul 15, 2024 4. Record last updated Oct 21, 2025 ## Look up another CVE ## About CubePath CubePath is a cloud provider with data centers in Europe and the United States. It offers VPS, bare metal servers and DDoS protection. [Cloud VPS](https://cubepath.com/vps) [DDoS protection](https://cubepath.com/ddos-protection) Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 19:23 UTC. [Sources and licenses](https://cubepath.com/security/cve/legal)