StraitOfVuln
Latest / CVE-2024-36401

CVE-2024-36401

CriticalCVSS 9.8 (v3.1)Actively exploited · CISA KEVAnalyzed
CVE.org ↗NVD ↗Vendor advisory ↗

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.

Details

CVE ID
CVE-2024-36401
Published / updated
01 Jul 2024, 16:15 UTC · last modified 30 Nov 2026, 19:14 UTC
Severity
CRITICAL
CVSS score
9.8 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · Attack vector: Network
Affected vendor
Affected products
Geoserver, Geotools
Affected versions
Geoserver: < 2.22.6
Geoserver: ≥ 2.23.0, < 2.23.6
Geoserver: ≥ 2.24.0, < 2.24.4
Geoserver: ≥ 2.25.0, < 2.25.2
Geotools: < 29.6
Geotools: ≥ 30.1, < 30.4
Geotools: ≥ 31.1, < 31.2
Geotools: 30.0
Geotools: 30.0
Geotools: 31.0
Geotools: 31.0
Fixed versions
geoserver 2.22.6, geoserver 2.23.6, geoserver 2.24.4, geoserver 2.25.2, geotools 29.6, geotools 30.4, geotools 31.2
Exploitation status
In CISA KEV since 15 Jul 2024 (federal due date 05 Aug 2024). Ransomware use: Unknown.
EPSS
99.81% probability of exploitation in the next 30 days · 100% percentile (02 Dec 2026)
Weakness
Remediation
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Source (CNA)
security-advisories@github.com
AI plain-English explainer

A short explanation of who is affected, the impact and what to do, written only from this record's data.

AI isn't configured on this server (set AI_PROVIDER and an API key).

Track this software

Add the affected products to your watchlist and get an e-mail when new CVEs list your versions.

+ Osgeo Geoserver+ Osgeo Geotools

CISA KEV entry

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.

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

Notes: This vulnerability affects an open-source component, third-party library, or a protocol used by different products. For more information, please see: https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv, https://github.com/geotools/geotools/pull/4797 ; https://nvd.nist.gov/vuln/detail/CVE-2024-36401