SCA: security update for org.geoserver.web:gs-web-app, org.geoserver:gs-wfs, org.geoserver:gs-wms (GHSA-6jj6-gm7p-fcvv)

critical Tenable Cloud Security Plugin ID 411492

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2024-36401)

See Also

https://github.com/advisories/GHSA-6jj6-gm7p-fcvv

Plugin Details

Severity: Critical

ID: 411492

Version: Revision 1.25

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/6/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: High

Score: 8.9

Percentile: 99.7

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 8.3

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2024-36401

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 9.1

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

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Threat Score: 9.3

Threat Vector: CVSS:4.0/E:A

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 7/1/2024

Vulnerability Publication Date: 7/1/2024

CISA Known Exploited Vulnerability Due Dates: 8/5/2024

Exploitable With

Core Impact

Metasploit (Geoserver unauthenticated Remote Code Execution)

Reference Information

CVE: CVE-2024-36401