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

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: yes. In CISA's catalogue since 2024-07-15. Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
- Likelihood of exploitation in the next 30 days (EPSS): 99.8%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2024-07-01T15:25:41.873Z
- Modified: 2026-11-30T19:14:34.723Z
- Also known as: GHSA-6jj6-gm7p-fcvv
- Weaknesses: CWE-94, CWE-95
- SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- geoserver geoserver: >= 2.23.0, < 2.23.6; >= 2.24.0, < 2.24.4; >= 2.25.0, < 2.25.2; < 2.22.6; before 2.23.6; from 2.24.0 before 2.24.4; from 2.25.0 before 2.25.2
- org.geoserver.web:gs-web-app (Maven): from 2.24.0 before 2.24.4; from 2.25.0 before 2.25.2; from 2.23.0 before 2.23.6; before 2.22.6
- org.geoserver:gs-wfs (Maven): from 2.24.0 before 2.24.4; from 2.25.0 before 2.25.2; from 2.23.0 before 2.23.6; before 2.22.6
- org.geoserver:gs-wms (Maven): from 2.24.0 before 2.24.4; from 2.25.0 before 2.25.2; from 2.23.0 before 2.23.6; before 2.22.6
- osgeo 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
- osgeo geotools: before 29.6; from 30.1 before 30.4; from 31.1 before 31.2; 30.0; 31.0

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2024-36401](https://www.cve.org/CVERecord?id=CVE-2024-36401), CVE Terms of Use, modified 2025-10-21
- GitHub Advisory Database: [GHSA-6jj6-gm7p-fcvv](https://github.com/advisories/GHSA-6jj6-gm7p-fcvv), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-36401](https://nvd.nist.gov/vuln/detail/CVE-2024-36401), Public domain, modified 2026-11-30
- CISA KEV: [CVE-2024-36401](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-36401), CC0-1.0, modified 2024-07-15

---

Page: https://cve.day/CVE-2024-36401 · Whole record: https://cve.day/CVE-2024-36401.json · Rebuilt by cve.day 2026-11-30T19:17:34.438Z
