CVEfocus › CVE database › CVE-2024-36401

CVE-2024-36401Remote Code Execution (RCE) vulnerability in evaluating property name expressions in…

Known exploited (CISA KEV)CVSS 9.8 CriticalEPSS 71.9% (in the top 1% of all CVEs)Published 2024-07-01Updated 2025-10-21Assigner: GitHub_M

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.

CWE-95

What to do

This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2024-07-15). If you run an affected version, patch or mitigate now.

Fixed builds are available from Maven: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Maven libraryorg.geoserver.web:gs-web-appFixed2.22.6GHSA-6jj6-gm7p-fcvv
Maven libraryorg.geoserver:gs-wfsFixed2.25.2GHSA-6jj6-gm7p-fcvv
Maven libraryorg.geoserver:gs-wmsFixed2.22.6GHSA-6jj6-gm7p-fcvv
Maven libraryorg.geotools.xsd:gt-xsd-coreFixed30.4GHSA-w3pj-wh35-fq8w
Maven libraryorg.geotools:gt-app-schemaFixed28.6GHSA-w3pj-wh35-fq8w
Maven libraryorg.geotools:gt-complexFixed31.2GHSA-w3pj-wh35-fq8w

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.