# CVE-2024-36401: Remote Code Execution (RCE) vulnerability in geoserver

Source: https://junglewise.ai/threats/cve-2024-36401-osgeo-geoserver-geotools-eval-injection-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-07-01. Updated: 2026-05-09  
License: CC BY 4.0 with a link back

CVE-2024-36401 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2024-07-01

OSGeo GeoServer and GeoTools are vulnerable to Remote Code Execution (RCE) due to unsafe evaluation of property names as XPath expressions via the commons-jxpath library. Unauthenticated attackers can exploit this through various OGC request parameters (e.g., WFS, WMS, WPS) to execute arbitrary code on the server.

Technologies: [org.geoserver:gs-wfs (Maven)](https://junglewise.ai/threats/technologies/org-geoserver-gs-wfs), [org.geoserver:gs-wms (Maven)](https://junglewise.ai/threats/technologies/org-geoserver-gs-wms), [org.geoserver.web:gs-web-app (Maven)](https://junglewise.ai/threats/technologies/org-geoserver-web-gs-web-app), [OSGeo GeoServer](https://junglewise.ai/threats/technologies/geoserver). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven), [OSGeo](https://junglewise.ai/threats/vendors/osgeo).

## Quick answers

**Is CVE-2024-36401 exploited in the wild?** Yes. CVE-2024-36401 is known to be exploited in the wild, first recorded on 15 July 2024. Treat it as urgent.

**How severe is CVE-2024-36401?** Critical severity, with a CVSS score of 3.1, published 1 July 2024.

**Which products and versions are affected?** org.geoserver:gs-wfs (Maven) ECOSYSTEM:introduced=2.24.0,fixed=2.24.4; org.geoserver:gs-wms (Maven) ECOSYSTEM:introduced=2.24.0,fixed=2.24.4; org.geoserver.web:gs-web-app (Maven) ECOSYSTEM:introduced=2.24.0,fixed=2.24.4.

**Is there a fix for CVE-2024-36401?** Yes. org.geoserver:gs-wfs (Maven): upgrade to 2.24.4 or later; org.geoserver:gs-wms (Maven): upgrade to 2.24.4 or later; org.geoserver.web:gs-web-app (Maven): upgrade to 2.24.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2024-36401 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2024-36401?** Check whether you run org.geoserver:gs-wfs (Maven), org.geoserver:gs-wms (Maven), org.geoserver.web:gs-web-app (Maven) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.geoserver:gs-wfs (Maven): upgrade to 2.24.4 or later

  ```sh
  # set org.geoserver:gs-wfs to 2.24.4 in your pom.xml or build.gradle
  ```

- org.geoserver:gs-wms (Maven): upgrade to 2.24.4 or later

  ```sh
  # set org.geoserver:gs-wms to 2.24.4 in your pom.xml or build.gradle
  ```

- org.geoserver.web:gs-web-app (Maven): upgrade to 2.24.4 or later

  ```sh
  # set org.geoserver.web:gs-web-app to 2.24.4 in your pom.xml or build.gradle
  ```


## Affected products

- OSGeo GeoServer < 2.22.6, 2.23.0 to < 2.23.6, 2.24.0 to < 2.24.4, 2.25.0 to < 2.25.2
- OSGeo GeoTools < 29.6, 30.0 to < 30.4, 31.0 to < 31.2

## Identifiers

- CVE-2024-36401
- GHSA-6jj6-gm7p-fcvv

## Timeline

- 2024-07-15: disclosed
- 2024-07-15: kev added: Added to CISA Known Exploited Vulnerabilities Catalog
- 2024-07-15: advisory

## Related threats

- [GeoServer Server-Side Template Injection in FreeMarker templates](https://junglewise.ai/threats/cve-2024-45747-geoserver-server-side-template-injection-in-freemarker-templates)
- [GeoServer SSRF in XML entity resolution via proxy base URL bypass](https://junglewise.ai/threats/cve-2025-58175-geoserver-ssrf-in-xml-entity-resolution-via-proxy-base-url-bypass)
- [GeoServer arbitrary file write in Master Password Dump page](https://junglewise.ai/threats/cve-2025-52465-geoserver-arbitrary-file-write-in-master-password-dump-page)
- [GeoServer has a Reflected Cross-Site Scripting (XSS) vulnerability in its WMS GetFeatureInfo HTML format](https://junglewise.ai/threats/cve-2025-21621-geoserver-has-a-reflected-cross-site-scripting-xss-vulnerability)
- [GeoServer is vulnerable to Unauthenticated XML External Entities (XXE) attack via WMS GetMap feature](https://junglewise.ai/threats/cve-2025-58360-osgeo-geoserver-xxe-in-wms-getmap-operation)
