CVE-2024-36401
Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.8
Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver
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.
- Record
CVE-2024-36401- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-95
- Updated
- 2026-11-02
EUVDEUVD-2024-2280
9.8
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.
- Record
EUVD-2024-2280- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-6jj6-gm7p-fcvv
9.3
Remote Code Execution (RCE) vulnerability in geoserver
Summary
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.
Details
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.
PoC
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.
Impact
This vulnerability can lead to executing arbitrary code.
Workaround
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 by an extension you are using:
Mitigation for geoserver.war deploy:
- Stop the application server
- Unzip
geoserver.warinto a directory - Locate the file
WEB-INF/lib/gt-complex-x.y.jarand remove - Zip the directory into a new
geoserver.war - Restart the application server
Mitigation for GeoServer binary:
- Stop Jetty
- Locate the file
webapps/geoserver/WEB-INF/lib/gt-complex-x.y.jarand remove - Restart Jetty
The following extensions and community modules are known to have a direct dependency on gt-complex jar and are not expected function properly without it. This is not comprehensive list and additional GeoServer functionality may be dependent on the availability of gt-complex jar:
- Extensions: Application Schema, Catalog Services for the Web, MongoDB Data Store
- Community Modules: Features-Templating, OGC API Modules, Smart Data Loader, SOLR Data Store
Mitigation available for prior releases patching three jars in your existing install:
-
Patched
gt-app-schema,gt-complexandgt-xsd-corejars may be downloaded for GeoServer: 2.25.1, 2.24.3, 2.24.2, 2.23.2, 2.22.2, 2.21.5, 2.21.4,2.20.7, 2.20.4, 2.19.2, 2.18.0.As example the 2.25.1 page links to geoserver-2.25.1-patches.zip download on source forge.
-
Unzip the
geoserver-x.y.z-patches.zipwhich contains three…
- Record
GHSA-6jj6-gm7p-fcvv- CVSS 4.0
- 9.3 Critical
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 - CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H - Weakness
- CWE-94, CWE-95
- Updated
- 2026-11-02
CISA KEV No score
OSGeo GeoServer GeoTools Eval Injection Vulnerability
OSGeo GeoServer GeoTools contains an improper neutralization of directives in dynamically evaluated code vulnerability due to unsafely evaluating property names as XPath expressions. This allows unauthenticated attackers to conduct remote code execution via specially crafted input.
- Record
CVE-2024-36401- Weakness
- CWE-95
- Updated
- 2026-11-02
NVD
9.8
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.
- Record
CVE-2024-36401- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-95, CWE-94
- Updated
- 2026-11-02
OSV
9.8
Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver
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.
- Record
CVE-2024-36401- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-95
- Updated
- 2026-11-02
OSVGHSA-6jj6-gm7p-fcvv
9.3
Remote Code Execution (RCE) vulnerability in geoserver
Summary
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.
Details
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.
PoC
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.
Impact
This vulnerability can lead to executing arbitrary code.
Workaround
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 by an extension you are using:
Mitigation for geoserver.war deploy:
- Stop the application server
- Unzip
geoserver.warinto a directory - Locate the file
WEB-INF/lib/gt-complex-x.y.jarand remove - Zip the directory into a new
geoserver.war - Restart the application server
Mitigation for GeoServer binary:
- Stop Jetty
- Locate the file
webapps/geoserver/WEB-INF/lib/gt-complex-x.y.jarand remove - Restart Jetty
The following extensions and community modules are known to have a direct dependency on gt-complex jar and are not expected function properly without it. This is not comprehensive list and additional GeoServer functionality may be dependent on the availability of gt-complex jar:
- Extensions: Application Schema, Catalog Services for the Web, MongoDB Data Store
- Community Modules: Features-Templating, OGC API Modules, Smart Data Loader, SOLR Data Store
Mitigation available for prior releases patching three jars in your existing install:
-
Patched
gt-app-schema,gt-complexandgt-xsd-corejars may be downloaded for GeoServer: 2.25.1, 2.24.3, 2.24.2, 2.23.2, 2.22.2, 2.21.5, 2.21.4,2.20.7, 2.20.4, 2.19.2, 2.18.0.As example the 2.25.1 page links to geoserver-2.25.1-patches.zip download on source forge.
-
Unzip the
geoserver-x.y.z-patches.zipwhich contains three…
- Record
GHSA-6jj6-gm7p-fcvv- CVSS 4.0
- 9.3 Critical
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 - CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H - Weakness
- CWE-94, CWE-95
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.geoserver.web:gs-web-appMaven |
2.24.0 up to 2.24.4 | 2.24.4 |
org.geoserver:gs-wfsMaven |
2.24.0 up to 2.24.4 | 2.24.4 |
org.geoserver:gs-wmsMaven |
2.24.0 up to 2.24.4 | 2.24.4 |
org.geoserver.web:gs-web-appMaven |
2.25.0 up to 2.25.2 | 2.25.2 |
org.geoserver:gs-wfsMaven |
2.25.0 up to 2.25.2 | 2.25.2 |
org.geoserver:gs-wmsMaven |
2.25.0 up to 2.25.2 | 2.25.2 |
org.geoserver.web:gs-web-appMaven |
2.23.0 up to 2.23.6 | 2.23.6 |
org.geoserver:gs-wfsMaven |
2.23.0 up to 2.23.6 | 2.23.6 |
org.geoserver:gs-wmsMaven |
2.23.0 up to 2.23.6 | 2.23.6 |
org.geoserver.web:gs-web-appMaven |
before 2.22.6 | 2.22.6 |
org.geoserver:gs-wfsMaven |
before 2.22.6 | 2.22.6 |
org.geoserver:gs-wmsMaven |
before 2.22.6 | 2.22.6 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Metasploit | Geoserver unauthenticated Remote Code Execution | 2024-07-01 |
| PoC in GitHub | bigb0x/CVE-2024-36401 | 2024-07-04 |
| PoC in GitHub | Niuwoo/CVE-2024-36401 | 2024-07-05 |
| PoC in GitHub | RevoltSecurities/CVE-2024-36401 | 2024-07-05 |
| PoC in GitHub | Mr-xn/CVE-2024-36401 | 2024-07-06 |
| PoC in GitHub | jakabakos/CVE-2024-36401-GeoServer-RCE | 2024-07-12 |
| PoC in GitHub | ahisec/geoserver- | 2024-07-17 |
| PoC in GitHub | Chocapikk/CVE-2024-36401 | 2024-07-30 |
| PoC in GitHub | y1s4s/CVE-2024-36401-PoC | 2024-08-01 |
| PoC in GitHub | justin-p/geoexplorer | 2024-08-27 |
Show 15 moreShow less
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | daniellowrie/CVE-2024-36401-PoC | 2024-09-13 |
| PoC in GitHub | kkhackz0013/CVE-2024-36401 | 2024-10-14 |
| PoC in GitHub | 0x0d3ad/CVE-2024-36401 | 2024-11-27 |
| PoC in GitHub | funnyDog896/CVE-2024-36401-WoodpeckerPlugin | 2024-11-28 |
| PoC in GitHub | whitebear-ch/GeoServerExploit | 2025-01-07 |
| PoC in GitHub | bmth666/GeoServer-Tools-CVE-2024-36401 | 2025-04-11 |
| PoC in GitHub | amoy6228/CVE-2024-36401_Geoserver_RCE_POC | 2025-04-30 |
| PoC in GitHub | URJACK2025/CVE-2024-36401 | 2025-10-04 |
| PoC in GitHub | mantanhacker/CVE-2024-36401-MASS | 2025-12-05 |
| PoC in GitHub | Delt-A/CVE-2024-36401-poc | 2026-05-30 |
| PoC in GitHub | DanieleGiovanardi2408/cve-2024-36401-geoserver-rce | 2026-06-03 |
| PoC in GitHub | keelanbrady1011/CVE-2024-36401 | 2026-07-07 |
| PoC in GitHub | raniaemran/cve-2024-36401-security-simulator | 2026-09-15 |
| PoC in GitHub | basesixtythree/B63-POC-CVE-2024-36401 | 2026-10-22 |
| Nuclei | GeoServer RCE in Evaluating Property Name Expressions |
History
| Recorded | Changed | Sources |
|---|---|---|
| exploitation | ||
| exploits | ||
| exploits | ||
| first indexed | CVE List, EUVD, GitHub Advisories, CISA KEV, Metasploit, Nuclei, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-36401 is a critical vulnerability (CVSS 9.8) in Geoserver, published July 1, 2024. CISA lists it as known to be exploited, since July 15, 2024. EUVD reports exploitation since July 15, 2024. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 99.8%, the 99th percentile. Fixed in org.geoserver.web:gs-web-app 2.24.4.
References
github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv
github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w
github.com/geotools/geotools/pull/4797
github.com/Warxim/CVE-2022-41852?tab=readme-ov-file
osgeo-org.atlassian.net/browse/GEOT-7587
cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401
Left out here: the rest of 2 source descriptions. The JSON record has them.