Read the docs
TI-2024-24187 Aliases CVE-2024-36401GHSA-6jj6-gm7p-fcvv

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

Priority CRITICAL 100Exploited in the wildCWE-95Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-95.

Summary

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.

Why it matters now

Exploitation Active In CISA KEV since 2024-07-15CISA due date 2024-08-05
EPSS 0.99813 99th percentileScored 2026-11-07
Public exploit Yes 3 exploit referencesTagged by NVD
Fix Fixed geoserver (geoserver): 2.23.6, 2.24.4, 2.25.2 +1org.geoserver.web:gs-web-app (Maven): 2.24.4, 2.25.2, 2.23.6 +1+2 more products

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Active
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
geoservergeoserver2.23.0 to before 2.23.6; 2.24.0 to before 2.24.4; 2.25.0 to before 2.25.2; before 2.22.62.23.6, 2.24.4, 2.25.2, 2.22.6Patch availableCNA
—org.geoserver.web:gs-web-app (Maven)2.24.0 to before 2.24.42.24.4Patch availableGHSA-6jj6-gm7p-fcvv
—org.geoserver:gs-wfs (Maven)2.24.0 to before 2.24.42.24.4Patch availableGHSA-6jj6-gm7p-fcvv
—org.geoserver:gs-wms (Maven)2.24.0 to before 2.24.42.24.4Patch availableGHSA-6jj6-gm7p-fcvv
—org.geoserver.web:gs-web-app (Maven)2.25.0 to before 2.25.22.25.2Patch availableGHSA-6jj6-gm7p-fcvv
—org.geoserver:gs-wfs (Maven)2.25.0 to before 2.25.22.25.2Patch availableGHSA-6jj6-gm7p-fcvv
—org.geoserver:gs-wms (Maven)2.25.0 to before 2.25.22.25.2Patch availableGHSA-6jj6-gm7p-fcvv
—org.geoserver.web:gs-web-app (Maven)2.23.0 to before 2.23.62.23.6Patch availableGHSA-6jj6-gm7p-fcvv
—org.geoserver:gs-wfs (Maven)2.23.0 to before 2.23.62.23.6Patch availableGHSA-6jj6-gm7p-fcvv
—org.geoserver:gs-wms (Maven)2.23.0 to before 2.23.62.23.6Patch availableGHSA-6jj6-gm7p-fcvv
—org.geoserver.web:gs-web-app (Maven)before 2.22.62.22.6Patch availableGHSA-6jj6-gm7p-fcvv
—org.geoserver:gs-wfs (Maven)before 2.22.62.22.6Patch availableGHSA-6jj6-gm7p-fcvv
—org.geoserver:gs-wms (Maven)before 2.22.62.22.6Patch availableGHSA-6jj6-gm7p-fcvv
  • geoserver Vendorgeoserver Affected 2.23.0 to before 2.23.6; 2.24.0 to before 2.24.4; 2.25.0 to before 2.25.2; before 2.22.6 Fixed in 2.23.6, 2.24.4, 2.25.2, 2.22.6 Patch available CNA
  • org.geoserver.web:gs-web-app (Maven) Vendor— Affected 2.24.0 to before 2.24.4 Fixed in 2.24.4 Patch available GHSA-6jj6-gm7p-fcvv
  • org.geoserver:gs-wfs (Maven) Vendor— Affected 2.24.0 to before 2.24.4 Fixed in 2.24.4 Patch available GHSA-6jj6-gm7p-fcvv
  • org.geoserver:gs-wms (Maven) Vendor— Affected 2.24.0 to before 2.24.4 Fixed in 2.24.4 Patch available GHSA-6jj6-gm7p-fcvv
  • org.geoserver.web:gs-web-app (Maven) Vendor— Affected 2.25.0 to before 2.25.2 Fixed in 2.25.2 Patch available GHSA-6jj6-gm7p-fcvv
  • org.geoserver:gs-wfs (Maven) Vendor— Affected 2.25.0 to before 2.25.2 Fixed in 2.25.2 Patch available GHSA-6jj6-gm7p-fcvv
  • org.geoserver:gs-wms (Maven) Vendor— Affected 2.25.0 to before 2.25.2 Fixed in 2.25.2 Patch available GHSA-6jj6-gm7p-fcvv
  • org.geoserver.web:gs-web-app (Maven) Vendor— Affected 2.23.0 to before 2.23.6 Fixed in 2.23.6 Patch available GHSA-6jj6-gm7p-fcvv
  • org.geoserver:gs-wfs (Maven) Vendor— Affected 2.23.0 to before 2.23.6 Fixed in 2.23.6 Patch available GHSA-6jj6-gm7p-fcvv
  • org.geoserver:gs-wms (Maven) Vendor— Affected 2.23.0 to before 2.23.6 Fixed in 2.23.6 Patch available GHSA-6jj6-gm7p-fcvv
  • org.geoserver.web:gs-web-app (Maven) Vendor— Affected before 2.22.6 Fixed in 2.22.6 Patch available GHSA-6jj6-gm7p-fcvv
  • org.geoserver:gs-wfs (Maven) Vendor— Affected before 2.22.6 Fixed in 2.22.6 Patch available GHSA-6jj6-gm7p-fcvv
  • org.geoserver:gs-wms (Maven) Vendor— Affected before 2.22.6 Fixed in 2.22.6 Patch available GHSA-6jj6-gm7p-fcvv

CPE configurations NVD · 6

CPEVersionsRoleVendor
cpe:2.3:a:geoserver:geoserver:*:*:*:*:*:*:*:*before 2.22.6; 2.23.0 to before 2.23.6; 2.24.0 to before 2.24.4; 2.25.0 to before 2.25.2Vulnerablegeoserver
cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*before 29.6; 30.1 to before 30.4; 31.1 to before 31.2Vulnerablegeotools
cpe:2.3:a:geotools:geotools:30.0:-:*:*:*:*:*:*30.0Vulnerablegeotools
cpe:2.3:a:geotools:geotools:30.0:rc:*:*:*:*:*:*30.0 rcVulnerablegeotools
cpe:2.3:a:geotools:geotools:31.0:-:*:*:*:*:*:*31.0Vulnerablegeotools
cpe:2.3:a:geotools:geotools:31.0:rc:*:*:*:*:*:*31.0 rcVulnerablegeotools
  • cpe:2.3:a:geoserver:geoserver:*:*:*:*:*:*:*:* Versions before 2.22.6; 2.23.0 to before 2.23.6; 2.24.0 to before 2.24.4; 2.25.0 to before 2.25.2 Vulnerable ·geoserver
  • cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:* Versions before 29.6; 30.1 to before 30.4; 31.1 to before 31.2 Vulnerable ·geotools
  • cpe:2.3:a:geotools:geotools:30.0:-:*:*:*:*:*:* Versions 30.0 Vulnerable ·geotools
  • cpe:2.3:a:geotools:geotools:30.0:rc:*:*:*:*:*:* Versions 30.0 rc Vulnerable ·geotools
  • cpe:2.3:a:geotools:geotools:31.0:-:*:*:*:*:*:* Versions 31.0 Vulnerable ·geotools
  • cpe:2.3:a:geotools:geotools:31.0:rc:*:*:*:*:*:* Versions 31.0 rc Vulnerable ·geotools

Remediation

  • Fix · CNA geoserver (geoserver) Fixed in 2.23.6, 2.24.4, 2.25.2, 2.22.6
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver.web:gs-web-app (Maven) Fixed in 2.24.4 Advisory →
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver:gs-wfs (Maven) Fixed in 2.24.4 Advisory →
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver:gs-wms (Maven) Fixed in 2.24.4 Advisory →
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver.web:gs-web-app (Maven) Fixed in 2.25.2 Advisory →
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver:gs-wfs (Maven) Fixed in 2.25.2 Advisory →
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver:gs-wms (Maven) Fixed in 2.25.2 Advisory →
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver.web:gs-web-app (Maven) Fixed in 2.23.6 Advisory →
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver:gs-wfs (Maven) Fixed in 2.23.6 Advisory →
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver:gs-wms (Maven) Fixed in 2.23.6 Advisory →
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver.web:gs-web-app (Maven) Fixed in 2.22.6 Advisory →
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver:gs-wfs (Maven) Fixed in 2.22.6 Advisory →
  • Fix · GHSA-6jj6-gm7p-fcvv org.geoserver:gs-wms (Maven) Fixed in 2.22.6 Advisory →

Timeline

  1. 2024-07-15 Added to CISA KEV
  2. 2026-10-02 Threatist record created from CVE-2024-36401
  3. 2026-10-03 Alias added: GHSA-6jj6-gm7p-fcvv

References

  • TI-2025-36149 GeoServer is vulnerable to an Unauthenticated XML External Entities (XXE) attack via WMS GetMap feature KEVCVSS 3.1CRITICAL 9.8
  • TI-2023-17518 GeoServer 2, in some configurations, allows remote attackers to execute arbitrary code… CVSS 3.1CRITICAL 9.8
  • TI-2023-28098 GeoServer arbitrary file upload vulnerability in REST Coverage Store API CVSS 3.1HIGH 7.2
  • TI-2024-15662 GeoServer Stored Cross-Site Scripting (XSS) vulnerability in GWC Seed Form CVSS 3.1MEDIUM 4.8
  • TI-2023-28099 GeoServer Stored Cross-Site Scripting (XSS) vulnerability in REST Resources API CVSS 3.1MEDIUM 4.8
  • TI-2024-16266 Classpath resource disclosure in GWC Web Resource API on Windows / Tomcat CVSS 3.1HIGH 7.5
See all 16 →

Sources