PT-2024-4472

CVE-2024-36401

·

Published

2024-06-04

·

Updated

2026-10-13

Description by

CVSS 2.0
10
Critical
MetricsAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions GeoServer versions prior to 2.22.6 GeoServer versions prior to 2.23.6 GeoServer versions prior to 2.24.4 GeoServer versions prior to 2.25.2
Description Unauthenticated users can achieve remote code execution on default installations due to the unsafe evaluation of property names as XPath expressions. The GeoTools library API evaluates property or attribute names for feature types and passes them insecurely to the commons-jxpath library, which can execute arbitrary code. While this XPath evaluation was intended only for complex feature types (Application Schema data stores), it is incorrectly applied to simple feature types, affecting all instances. This issue is exploitable via OGC request parameters in the following endpoints: 'WFS GetFeature', 'WFS GetPropertyValue', 'WMS GetMap', 'WMS GetFeatureInfo', 'WMS GetLegendGraphic', and 'WPS Execute'. Real-world exploitation has been observed, with attackers deploying Monero coin miners, Mirai botnet variants, and other malware like AnyDesk to compromise systems across government, transportation, and industrial sectors. Approximately 1,071 of 4,606 identified instances were initially found to be vulnerable.
Recommendations Update GeoServer to version 2.22.6 or later. Update GeoServer to version 2.23.6 or later. Update GeoServer to version 2.24.4 or later. Update GeoServer to version 2.25.2 or later. As a temporary workaround, remove the gt-complex-x.y.jar file (where x.y is the GeoTools version) from the GeoServer installation to remove the vulnerable code, though this may disrupt some functionality.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-6JJ6-GM7P-FCVV
GHSA-W3PJ-WH35-FQ8W
Found an issue in the description? Have something to add? Feel free to write us 👾