# CVE-2024-36401: Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Yes: in CISA KEV since 2024-07-15; federal due date 2024-08-05
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 71.89% (percentile 100, 2026-11-26)
- **CWE:** CWE-95
- **Aliases:** GHSA-6jj6-gm7p-fcvv
- **Published:** 2024-07-01T15:25:41.873Z
- **Modified:** 2026-06-17T07:36:38.833Z

## Who should check

- Projects that depend on Maven package org.geoserver.web:gs-web-app (\>= 2.24.0, \< 2.24.4)
- Projects that depend on Maven package org.geoserver:gs-wfs (\>= 2.24.0, \< 2.24.4)
- Projects that depend on Maven package org.geoserver:gs-wms (\>= 2.24.0, \< 2.24.4)
- Anyone running geoserver \>= 2.23.0, \< 2.23.6; \>= 2.24.0, \< 2.24.4; \>= 2.25.0, \< 2.25.2; \< 2.22.6

## 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.

## Affected and fixed versions

- Maven `org.geoserver.web:gs-web-app`: affected \>= 2.24.0, \< 2.24.4; fixed 2.24.4, 2.25.2, 2.23.6, 2.22.6 (osv)
- Maven `org.geoserver:gs-wfs`: affected \>= 2.24.0, \< 2.24.4; fixed 2.24.4, 2.25.2, 2.23.6, 2.22.6 (osv)
- Maven `org.geoserver:gs-wms`: affected \>= 2.24.0, \< 2.24.4; fixed 2.24.4, 2.25.2, 2.23.6, 2.22.6 (osv)
- geoserver: \>= 2.23.0, \< 2.23.6; \>= 2.24.0, \< 2.24.4; \>= 2.25.0, \< 2.25.2; \< 2.22.6 (cvelist)

## Mitigation

- Upgrade org.geoserver.web:gs-web-app to one of 2.24.4, 2.25.2, 2.23.6, 2.22.6 (or later in the same release line).
- Upgrade org.geoserver:gs-wfs to one of 2.24.4, 2.25.2, 2.23.6, 2.22.6 (or later in the same release line).
- Upgrade org.geoserver:gs-wms to one of 2.24.4, 2.25.2, 2.23.6, 2.22.6 (or later in the same release line).

## Timeline

- 2024-07-01: Published
- 2024-07-15: Added to CISA KEV (exploited in the wild)
- 2024-08-05: CISA remediation due date for US federal agencies
- 2026-06-17: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-36401. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36401.md
Affected: org.geoserver.web:gs-web-app >= 2.24.0, < 2.24.4; org.geoserver:gs-wfs >= 2.24.0, < 2.24.4; org.geoserver:gs-wms >= 2.24.0, < 2.24.4
Fixed in: 2.24.4, 2.25.2, 2.23.6, 2.22.6

Steps:
1. Search this machine and project for org.geoserver.web:gs-web-app (Maven), org.geoserver:gs-wfs (Maven), org.geoserver:gs-wms (Maven), geoserver: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-36401 being exploited?

Yes. CISA lists CVE-2024-36401 in its Known Exploited Vulnerabilities catalog since 2024-07-15, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 71.89% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-36401?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-36401?

org.geoserver.web:gs-web-app \>= 2.24.0, \< 2.24.4; org.geoserver:gs-wfs \>= 2.24.0, \< 2.24.4; org.geoserver:gs-wms \>= 2.24.0, \< 2.24.4.

### Is there a fix for CVE-2024-36401?

Yes. Fixed in 2.24.4, 2.25.2, 2.23.6, 2.22.6. Upgrade org.geoserver.web:gs-web-app to one of 2.24.4, 2.25.2, 2.23.6, 2.22.6 (or later in the same release line). Upgrade org.geoserver:gs-wfs to one of 2.24.4, 2.25.2, 2.23.6, 2.22.6 (or later in the same release line). Upgrade org.geoserver:gs-wms to one of 2.24.4, 2.25.2, 2.23.6, 2.22.6 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-36401?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv>
- vendor: <https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w>
- vendor: <https://osgeo-org.atlassian.net/browse/GEOT-7587>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-36401>
- patch: <https://github.com/geotools/geotools/pull/4797>
- exploit: <https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852>
- exploit: <https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401>
- other: <https://github.com/geoserver/geoserver>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-36401>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6jj6-gm7p-fcvv> (license: <https://creativecommons.org/licenses/by/4.0/>)
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2024-36401> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-36401>
