9.8

CVE-2024-36401: OSGeo GeoServer GeoTools Eval Injection Vulnerability

KEV
Analyzed
AliasesGHSA-6jj6-gm7p-fcvv
Published 01-07-2024Last modified 21-10-2025

Vulnerability summary

CVE-2024-36401 is a critical (CVSS 9.8) vulnerability in OSGeo GeoServer. It is known to be exploited: CISA lists it, first on 15-07-2024. EPSS estimates a 99.81% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 4 public exploits are recorded.

Priority
Act nowlisted as exploited

Listed as exploited by CISA (15-07-2024)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
99.81%
0%100%
Critical · 0.00 pp in 30 days
KEVExploited in the wildCritical · listed in 1 catalog
RansomwareNot flaggedNo ransomware use recorded.
Public exploits4github, reference, metasploit

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 01-07-2024
    PublishedVulnerability first disclosed.
  2. 15-07-2024
    Added to CISA KEVExploitedOSGeo GeoServer GeoTools Eval Injection Vulnerability
  3. 05-08-2024
    CISA remediation dueDeadline passedApply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
  4. 21-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

99.81%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

No change 0.00 pp

From 99.81% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEVListed
Added
15-07-2024
Federal due date
05-08-2024
ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

CISA required action

Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. nvd.nist.gov/vuln/detail/CVE-2024-36401

Public exploits

4 found
  • githubUnverified

    Geotools

    Maturity: poc

  • githubUnverified

    Cve 2022 41852

    Maturity: poc

  • referenceUnverified

    Exploit Reference (vicarius.io)

    Maturity: unknown

Show all 4 exploits
  • MetasploitMetasploitremoteVerified

    Geoserver unauthenticated Remote Code Execution

    exploit/multi/http/geoserver_unauth_rce_cve_2024_36401

    Maturity: weaponized

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Org.geoserver2 products
  • gs-wfs≥ 2.24.0, < 2.24.4 | ≥ 2.25.0, < 2.25.2 | ≥ 2.23.0, < 2.23.6 | < 2.22.6
  • gs-wms≥ 2.24.0, < 2.24.4 | ≥ 2.25.0, < 2.25.2 | ≥ 2.23.0, < 2.23.6 | < 2.22.6
Osgeo2 products
  • geoserver< 2.22.6 | ≥ 2.23.0, < 2.23.6 | ≥ 2.24.0, < 2.24.4 | ≥ 2.25.0, < 2.25.2
  • geotools< 29.6 | ≥ 30.1, < 30.4 | ≥ 31.1, < 31.2 | 30.0 | 30.0:rc | 31.0 | 31.0:rc
Geoserver1 product
  • geoserver< 2.22.6 | ≥ 2.23.0, < 2.23.6 | ≥ 2.24.0, < 2.24.4 | ≥ 2.25.0, < 2.25.2
Geotools1 product
  • geotools< 29.6 | ≥ 30.1, < 30.4 | ≥ 31.1, < 31.2 | 30.0 | 30.0:rc | 31.0 | 31.0:rc
Org.geoserver.web1 product
  • gs-web-app≥ 2.24.0, < 2.24.4 | ≥ 2.25.0, < 2.25.2 | ≥ 2.23.0, < 2.23.6 | < 2.22.6

5 vendors · 7 products

References

9 links