Home / geoserver / geoserver / CVE-2024-36401
CVE-2024-36401: is it exploited, and which versions of geoserver are affected and fixed?
CVE-2024-36401 is a code injection through eval vulnerability in geoserver, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on July 15, 2024, with a federal due date of August 5, 2024. Affected: org.geoserver.web:gs-web-app from 2.24.0 before 2.24.4, org.geoserver:gs-wfs from 2.24.0 before 2.24.4, org.geoserver:gs-wms from 2.24.0 before 2.24.4 and 9 more (GitHub advisory GHSA-6jj6-gm7p-fcvv). Fixed in 2.24.4, 2.25.2, 2.23.6 and 2.22.6 (GitHub advisory GHSA-6jj6-gm7p-fcvv). Severity: Critical (9.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 30, 2026, 20:09 UTC.
What is CVE-2024-36401?
Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver
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.
From the CVE record by GitHub_M, last updated October 21, 2025, 22:56 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| geoserver | geoserver | >= 2.23.0, < 2.23.6 >= 2.24.0, < 2.24.4 >= 2.25.0, < 2.25.2 < 2.22.6 |
As the CVE record by GitHub_M states it, last updated October 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.geoserver.web:gs-web-app | >= 2.24.0, < 2.24.4 | 2.24.4 | GHSA-6jj6-gm7p-fcvv |
| Maven | org.geoserver:gs-wfs | >= 2.24.0, < 2.24.4 | 2.24.4 | GHSA-6jj6-gm7p-fcvv |
| Maven | org.geoserver:gs-wms | >= 2.24.0, < 2.24.4 | 2.24.4 | GHSA-6jj6-gm7p-fcvv |
| Maven | org.geoserver.web:gs-web-app | >= 2.25.0, < 2.25.2 | 2.25.2 | GHSA-6jj6-gm7p-fcvv |
| Maven | org.geoserver:gs-wfs | >= 2.25.0, < 2.25.2 | 2.25.2 | GHSA-6jj6-gm7p-fcvv |
| Maven | org.geoserver:gs-wms | >= 2.25.0, < 2.25.2 | 2.25.2 | GHSA-6jj6-gm7p-fcvv |
| Maven | org.geoserver.web:gs-web-app | >= 2.23.0, < 2.23.6 | 2.23.6 | GHSA-6jj6-gm7p-fcvv |
| Maven | org.geoserver:gs-wfs | >= 2.23.0, < 2.23.6 | 2.23.6 | GHSA-6jj6-gm7p-fcvv |
| Maven | org.geoserver:gs-wms | >= 2.23.0, < 2.23.6 | 2.23.6 | GHSA-6jj6-gm7p-fcvv |
| Maven | org.geoserver.web:gs-web-app | < 2.22.6 | 2.22.6 | GHSA-6jj6-gm7p-fcvv |
| Maven | org.geoserver:gs-wfs | < 2.22.6 | 2.22.6 | GHSA-6jj6-gm7p-fcvv |
| Maven | org.geoserver:gs-wms | < 2.22.6 | 2.22.6 | GHSA-6jj6-gm7p-fcvv |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 22, 2025. Summary: Remote Code Execution (RCE) vulnerability in geoserver.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| osgeo | geoserver | before 2.22.6 | application |
| osgeo | geoserver | from 2.23.0 before 2.23.6 | application |
| osgeo | geoserver | from 2.24.0 before 2.24.4 | application |
| osgeo | geoserver | from 2.25.0 before 2.25.2 | application |
| osgeo | geotools | before 29.6 | application |
| osgeo | geotools | from 30.1 before 30.4 | application |
| osgeo | geotools | from 31.1 before 31.2 | application |
| osgeo | geotools | 30.0 | application |
| osgeo | geotools | 31.0 | application |
NVD analysis (status Analyzed), last modified November 30, 2026, 19:14 UTC.
How severe is CVE-2024-36401?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-36401 exploited in the wild?
- CISA KEV
- Listed as OSGeo GeoServer GeoTools Eval Injection Vulnerability, added July 15, 2024; federal agencies must act by August 5, 2024
- Required action
- Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
- Ransomware use
- Unknown
- CISA's summary
- OSGeo GeoServer GeoTools contains an improper neutralization of directives in dynamically evaluated code vulnerability due to unsafely evaluating property names as XPath expressions. This allows unauthenticated attackers to conduct remote code execution via specially crafted input.
- CISA SSVC
- Exploitation: active; automatable: yes; technical impact: total (CISA ADP, July 13, 2024)
- EPSS
- 99.8% probability of exploitation activity in the next 30 days, percentile 100.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv x_refsource_CONFIRM
- https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w x_refsource_MISC
- https://github.com/geotools/geotools/pull/4797 x_refsource_MISC
- https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852 x_refsource_MISC
- https://osgeo-org.atlassian.net/browse/GEOT-7587 x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401 government-resource
- https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401
When was it published, and where is the official record?
- Reserved
- May 27, 2024
- Published
- July 1, 2024, 15:25 UTC
- CVE record updated
- October 21, 2025, 22:56 UTC by GitHub_M
- NVD
- Analyzed, last modified November 30, 2026, 19:14 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 30, 2026, 20:09 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect geoserver?
- Nov 30, 2026CVE-2026-129243 geoserver: incorrect authorization exploited
- Nov 30, 2026CVE-2026-120705 geoserver: XML injection exploited
- Nov 25, 2025CVE-2025-58360 geoserver: XML external entity (XXE) exploited
- Nov 25, 2025CVE-2025-21621 geoserver: cross-site scripting (XSS)
- Jun 10, 2025CVE-2025-30220 geoserver: XML external entity (XXE)
- Jun 10, 2025CVE-2025-30145 geoserver: infinite loop (denial of service)
- Jun 10, 2025CVE-2025-27505 geoserver: missing authorization
- Jun 10, 2025CVE-2024-40625 geoserver: server-side request forgery (SSRF)
Questions about CVE-2024-36401
Is CVE-2024-36401 exploited in the wild?
Yes. CISA added CVE-2024-36401 to its Known Exploited Vulnerabilities catalog on July 15, 2024 and set federal agencies a due date of August 5, 2024. FIRST's EPSS gives it a 99.8% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of geoserver are affected by CVE-2024-36401?
org.geoserver.web:gs-web-app from 2.24.0 before 2.24.4, org.geoserver:gs-wfs from 2.24.0 before 2.24.4, org.geoserver:gs-wms from 2.24.0 before 2.24.4, org.geoserver.web:gs-web-app from 2.25.0 before 2.25.2, org.geoserver:gs-wfs from 2.25.0 before 2.25.2, org.geoserver:gs-wms from 2.25.0 before 2.25.2 and 6 more, per the GitHub advisory GHSA-6jj6-gm7p-fcvv. The tables above give every range the sources list.
Which version fixes CVE-2024-36401?
2.24.4, 2.25.2, 2.23.6 and 2.22.6, per the GitHub advisory GHSA-6jj6-gm7p-fcvv. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-36401?
Critical (9.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-36401?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.