CVE-2024-36401

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.

Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
99.813%
chance of exploitation in the next 30 days
among the highest of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2024-07-15
Public exploit code
Yes
Exploit references (NVD and CNA): 3
Metasploit modules: 1
Nuclei templates: 1

Weakness

CISA Known Exploited Vulnerabilities entry

Vulnerability nameOSGeo GeoServer GeoTools Eval Injection Vulnerability
Vendor / productOSGeo / GeoServer
Date added2024-07-15
Federal remediation due date2024-08-05
Required actionApply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Known ransomware campaign useUnknown

CISA SSVC decision points

Exploitationactive
Automatableyes
Technical impacttotal
Scored2024-07-13

Timeline

  1. 2024-07-01Published by the CNA15:25 UTC
  2. 2024-07-01GitHub advisory published (GHSA-6jj6-gm7p-fcvv)same day
  3. 2024-07-13CISA SSVC decision recorded12 days after publication
  4. 2024-07-15Added to the CISA KEV catalog14 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Nuclei templates:

GitHub advisory GHSA-6jj6-gm7p-fcvv, affected packages:

PackageVulnerable versionsFixed in
Maven org.geoserver.web:gs-web-appbefore 2.22.62.22.6
Maven org.geoserver.web:gs-web-appfrom 2.23.0 before 2.23.62.23.6
Maven org.geoserver.web:gs-web-appfrom 2.24.0 before 2.24.42.24.4
Maven org.geoserver.web:gs-web-appfrom 2.25.0 before 2.25.22.25.2
Maven org.geoserver:gs-wfsbefore 2.22.62.22.6

7 more affected packages in the advisory.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
geoserver geoserverbefore 2.22.6fixed in 2.22.6from 2.23.0 before 2.23.6fixed in 2.23.6from 2.24.0 before 2.24.4fixed in 2.24.4from 2.25.0 before 2.25.2fixed in 2.25.22.22.62.23.62.24.42.25.2
geotools geotoolsbefore 29.6fixed in 29.6from 30.1 before 30.4fixed in 30.4from 31.1 before 31.2fixed in 31.230.0no fix listed31.0no fix listed29.630.431.2not listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources