Skip to main content
Network Thinking Solutions Logo

CVE-2024-36401

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.

All CVEs
CVE-2024-36401
Known exploited · CISA KEV
Published 7/1/2024

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.

Vendor advisory
CVSS 3.19.8Critical

Overview

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.

Published
7/1/2024
Last modified
11/30/2026
CVE assigner
Not available
NVD analysis
Analyzed

Exploitation

Known exploited · CISA KEV

The source record flags evidence of exploitation in the wild. Whether a specific system is affected depends on the product, version, and advisory conditions.

Added to KEV: 7/15/2024

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
geoserver
osgeo
< 2.22.6

Verify advisory

Source
geoserver
osgeo
≥ 2.23.0, < 2.23.6

Verify advisory

Source
geoserver
osgeo
≥ 2.24.0, < 2.24.4

Verify advisory

Source
geoserver
osgeo
≥ 2.25.0, < 2.25.2

Verify advisory

Source
geotools
osgeo
< 29.6

Verify advisory

Source
geotools
osgeo
≥ 30.1, < 30.4

Verify advisory

Source
geotools
osgeo
≥ 31.1, < 31.2

Verify advisory

Source
geotools
osgeo
30.0

Verify advisory

Source
geotools
osgeo
30.0

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
geotools
osgeo
31.0

Verify advisory

Source
geotools
osgeo
31.0

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
geoserver
geoserver
>= 2.23.0, < 2.23.6

Verify advisory

Source
geoserver
geoserver
>= 2.24.0, < 2.24.4

Verify advisory

Source
geoserver
geoserver
>= 2.25.0, < 2.25.2

Verify advisory

Source
geoserver
geoserver
< 2.22.6

Verify advisory

Source
geoserver
geoserver
< 2.23.6

Verify advisory

Source
geoserver
geoserver
≥ 2.24.0, < 2.24.4

Verify advisory

Source
geoserver
geoserver
≥ 2.25.0, < 2.25.2

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

CISA guidance

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

Federal agency remediation deadline: 8/5/2024. This deadline applies to federal agencies, not to NTS clients.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

9.8 · Critical CVSS 3.1

Scored by security-advisories@github.com

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

9.8 · Critical CVSS 3.1

Scored by nvd@nist.gov

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

Related weaknesses

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.