Skip to content
Vulnerability Intelligence

CVE-2024-36401

CriticalExploitedPublic exploit

Remote Code Execution (RCE) vulnerability in geoserver

Published Jul 1, 2024 · Updated Aug 12, 2026 · Also known as GHSA-6jj6-gm7p-fcvv

Key Facts

Patch immediately
  • CVE-2024-36401 is a critical-severity vulnerability (CVSS 9.3 v4) affecting Geoserver, Geotools, org.geoserver:gs-wfs (maven) and 2 more products.
  • It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Jul 3, 2024. Public exploit code is available.
  • EPSS estimates a 100% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Geoserver 2.22.6, Geotools 29.6, org.geoserver:gs-wfs 2.22.6.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

CVSS v4

9.3

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/E:A

EPSS (30-day exploit likelihood)

100%

Higher than 99.9% of all scored CVEs

Exploited in the wild

Yes

4 catalog listings

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2024-36401 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
CISA KEVJul 15, 2024Aug 5, 2024Not reported
Industry KEV feedJul 3, 2024Aug 5, 2024Not reported
CIRCL KEVJul 15, 2024Aug 5, 2024Not reported
ENISA EUVDJul 15, 2024n/aNot reported

Required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Affected Products

10 affected entries in total
ProductAffected versionsFixed in
GeoserverGeoserver>= >= 2.23.0, < 2.23.62.22.6
GeotoolsGeotools30.0, 30.0-rc, 31.0, 31.0-rc29.6
org.geoserver:gs-wfsmaven>= 2.24.02.22.6
org.geoserver:gs-wmsmaven>= 2.24.02.22.6
org.geoserver.web:gs-web-appmaven>= 2.24.02.22.6

Patched Releases

Geoserver

2.22.6

Geotools

29.6

org.geoserver:gs-wfs

2.22.6, 2.23.6, 2.24.4, 2.25.2

org.geoserver:gs-wms

2.22.6, 2.23.6, 2.24.4, 2.25.2

org.geoserver.web:gs-web-app

2.22.6, 2.23.6, 2.24.4, 2.25.2

Timeline

  1. Publicly disclosed

    Jul 1, 2024

  2. Added to Industry KEV feed

    Jul 3, 2024

  3. Added to CISA KEV

    Jul 15, 2024

  4. Added to CIRCL KEV

    Jul 15, 2024

  5. Added to ENISA EUVD

    Jul 15, 2024

  6. Last updated

    Aug 12, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code ('Code Injection')
  • CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2024-36401 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo