CVE Tools

CVE-2024-36401

Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver

Published: Jul 1, 2024Updated: Oct 24, 2025 Sources: CVE List NVD GHSA BDUCWE-95

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.

In plain language

AI Act now

CVE-2024-36401 is a critical, unauthenticated remote code execution flaw in GeoServer (and some GeoTools components) that can let an internet attacker take over your server; if you run GeoServer versions earlier than the fixed releases, you should act immediately.

Executive summary

Unauthenticated Remote Code Execution in GeoServer arises from unsafe evaluation of “property name” values as XPath expressions in various OGC request parameters, allowing arbitrary code execution over the network; GeoServer versions prior to 2.22.6, 2.23.6, 2.24.4, and 2.25.2 are affected.

If affected, business impact
Full GeoServer server takeoverMalicious code executionData theft from served servicesService disruption

What to do now

  1. Check your GeoServer version and whether it is older than 2.22.6, 2.23.6, 2.24.4, or 2.25.2.
  2. If you are using GeoServer, upgrade the affected modules to the fixed release that matches your line: gs-web-app 2.24.4 (or 2.25.2), gs-wfs 2.24.4 (or 2.25.2), and gs-wms 2.24.4 (or 2.25.2).
  3. If your GeoServer stack includes GeoTools, upgrade GeoTools to 29.6.
  4. If you cannot patch immediately, remove the vulnerable gt-complex-x.y.jar file from GeoServer (for example, gt-complex-31.1.jar if running 2.25.1), and be prepared for possible functionality loss or deployment issues.
Patch / advisory Usually a quick update

CVSS Vector Breakdown

AV:NAC:LPR:NUI:NS:UC:HI:HA:H
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:NPrivileges Required
None
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

Exploitability

CISA Known Exploited Vulnerability
Added to KEV:Jul 15, 2024
Remediation due:Aug 5, 2024

Required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

2 exploit sources identified

Exploit details including PoC links, Metasploit modules, and scanner templates are available after registration.

View exploit details
Official Patch Available
Workaround Available

Attack Graph

Products CVE Techniques Tactics

Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/ + scroll to zoom, or go fullscreen.

MITRE ATT&CK

2 techniques
Execution
Initial Access
View detailed technique mapping

References

and 10 more references View all →
3

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2024-36401 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows