CVE & CISA-KEV Catalog

CVE-2024-36401

CRITICALCISA KEVEPSS 100th pctl
9.8
CVSS v3
NVD

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.

How to fix

Remediation Available
geoserverNVD
Affected:>= 2.25.0, < 2.25.2Fixed in:2.25.2CVE-2024-36401derived from NVD
geotoolsNVD
Affected:>= 31.1, < 31.2Fixed in:31.2CVE-2024-36401derived from NVD

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

99.81%probability of exploitation in 30 days
100thpercentile

Very high risk: more likely to be exploited than 100% of all known CVEs.

Known Exploited Vulnerability (CISA KEV)

OSGeo GeoServer GeoTools Eval Injection Vulnerability

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.

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

Remediation due: 2024-08-05

References

Related Vulnerabilities

Other CWE-95 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-24893Critical9.8100%KEVFix
CVE-2026-33017Critical9.898%KEVFix
CVE-2024-21650Critical10.093%--
CVE-2023-37462Critical9.991%-Fix
CVE-2024-7954Critical9.890%-Fix
CVE-2023-46731Critical10.089%-Fix
Embed a live status badge for CVE-2024-36401
CVE-2024-36401 severity badge

Markdown

[![CVE-2024-36401](https://tridentstack.com/cve/badge/CVE-2024-36401.svg)](https://tridentstack.com/cve/CVE-2024-36401)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-36401"><img src="https://tridentstack.com/cve/badge/CVE-2024-36401.svg" alt="CVE-2024-36401"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-10-24.