Skip to content
On CISA KEVCritical

CVE-2024-36401Geoserver Code Injection

Remote Code Execution (RCE) vulnerability in geoserver

Published Jul 1, 2024 · Updated Nov 30, 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.

Scores

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

Exploit maturity

Exploited (KEV)

ATLAS score

86/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Jul 15, 2024

14 days after publication

Federal due date

Aug 5, 2024

Overdue

Ransomware use

Not reported

Attributed actors

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

3

Proof-of-concept links

In-the-wild evidence

20

Reports of active use

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

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

18 affected entries in total
ProductAffected versionsFixed in
GeoserverGeoserver2.24.0, 2.25.0, >= 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

osgeo geoserver

2.22.6, 2.23.6, 2.24.4, 2.25.2

osgeo geotools

29.6, 30.4, 31.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

    Nov 30, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code
  • CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code

FAQ

Common Questions.

Is CVE-2024-36401 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.