Exploit database

Vulnerability

CVE-2024-36401

Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

20 sources
Geoserver unauthenticated Remote Code Execution
MSF-multi--http--geoserver_unauth_rce_cve_2024_36401MetasploitLinux,Unix,Windows / remotePreferred

GeoServer is an open-source software server written in Java that provides the ability to view, edit, and share geospatial data. It is designed to be a flexible, efficient solution for distributing geospatial data from a variety of sources such as Geographic Information System (GIS) databases, web-based data, and personal datasets. In the GeoServer versions < 2.23.6, >= 2.24.0, < 2.24.4 and >= 2.25.0, < 2.25.1, 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. An attacker can abuse this by sending a POST request with a malicious xpath expression to execute arbitrary commands as root on the system.

2024-07-01geoserver_unauth_rce_cve_2024_36401.rb
bigblackhat/ofx
GH-e5e9839114413d56d271656aba98f851GitHubUnofficial GitHub source

一个开源的、开箱即用的漏洞批量验证框架

2021-06-02301 files · 920 stars
chocapikk/cve-2024-36401
GH-dfc95575b3f3737de7ecaf351e03171fGitHubUnofficial GitHub source

GeoServer Remote Code Execution

2024-07-306 files · 89 stars
ahisec/geoserver-
GH-89d689d48f887d755c0211f635cab55fGitHubUnofficial GitHub source

geoserver CVE-2024-36401漏洞利用工具

2024-07-1731 files · 45 stars
bmth666/geoserver-tools-cve-2024-36401
GH-7afd66ed71abc69149a8c2875ad6b590GitHubUnofficial GitHub source

CVE-2024-36401 图形化利用工具,支持各个JDK版本利用以及回显、内存马实现

2025-04-1161 files · 44 stars
crackercat/feed
GH-09bc49f39559aa0ba4218c733ebd17daGitHubUnofficial GitHub source

crackercat/feed source repository

2025-09-20432 files · 39 stars
bigb0x/cve-2024-36401
GH-a187960660ff40491a84c375878592ccGitHubUnofficial GitHub source

POC for CVE-2024-36401. This POC will attempt to establish a reverse shell from the vlun targets.

2024-07-043 files · 35 stars
chocapikk/msf-exploit-collection
GH-41d3faefe6af7bab97526b9e99de715bGitHubUnofficial GitHub source

✪ Collection of Metasploit Modules ✪

2024-09-19139 files · 17 stars
justin-p/geoexplorer
GH-305487879e137e84154c52cb5281552aGitHubUnofficial GitHub source

Mass scanner for CVE-2024-36401

2024-08-2714 files · 4 stars
niuwoo/cve-2024-36401
GH-ab201624c928c3214d5499acb52562bfGitHubUnofficial GitHub source

POC

2024-07-052 files · 4 stars
daniellowrie/cve-2024-36401-poc
GH-9ce7fa659468110654670cf0d0dbf075GitHubUnofficial GitHub source

Proof-of-Concept Exploit for CVE-2024-36401 GeoServer 2.25.1

2024-09-132 files · 3 stars
0x0d3ad/cve-2024-36401
GH-c5c74f01a0fede5a5d8da119dd019b27GitHubUnofficial GitHub source

CVE-2024-36401 (GeoServer Remote Code Execution)

2024-11-274 files · 2 stars
amoy6228/cve-2024-36401_geoserver_rce_poc
GH-ce219a05474572c1b290105de9e7242bGitHubUnofficial GitHub source

本脚本是针对 GeoServer 的远程代码执行漏洞(CVE-2024-36401)开发的 PoC(Proof of Concept)探测工具。该漏洞允许攻击者通过构造特定请求,在目标服务器上执行任意命令。

2025-04-306 files · 2 stars
urjack2025/cve-2024-36401
GH-2c842f120de294debd8c9b02746a56a3GitHubUnofficial GitHub source

An Python Exp For "GeoServer"

2025-10-042 files · 2 stars
12442rf/poc
GH-3a840c3a743e0417793b49231edf2d51GitHubUnofficial GitHub source

12442rf/poc source repository

2025-05-0612 files · 1 stars
revoltsecurities/cve-2024-36401
GH-46cc8e40a9ff045d9dc368a1dbbd3dc4GitHubUnofficial GitHub source

Exploiter a Vulnerability detection and Exploitation tool for GeoServer Unauthenticated Remote Code Execution CVE-2024-36401.

2024-07-054 files · 1 stars
astr4liteex/cve-2024-36401
GH-3b01a6919b4115e1573574139955f31dGitHubUnofficial GitHub source

Remix of Chokapikk's CVE-2024-36401 to allow webshell-like behaviour on limited environments

2026-07-074 files · 0 stars
basesixtythree/b63-poc-cve-2024-36401
GH-065d428edd62fd3c37078b78ae1e6154GitHubUnofficial GitHub source

PoC and verification material for CVE-2024-36401 (GeoServer OGC filter evaluation RCE)

2026-10-2214 files · 0 stars
delt-a/cve-2024-36401-poc
GH-1d42045c3ba1cf5de119d5e1c5313344GitHubUnofficial GitHub source

delt-a/cve-2024-36401-poc source repository

2026-05-302 files · 0 stars