Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver
100Vexday Risk Score
Patch now. It under exploitation confirmed by CISA and has a working public exploit.
ssvc Actcvss 9.8epss 100%
from disclosure to weapon3 days
Published on NVDJul 1
1st PoC+3d
metasploitJul 1
CISA KEV+14d
exploitation probability
100%top 1% of all CVEs
observed exploitation
yesCISA + VulnCheck
48 public exploit(s)
Action required by CISAfederal deadline: 2024-08-05
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Researched and written with AI from the vendor advisory and public analysis, with the sources above. Always confirm the fixed version in the official advisory before acting.
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
geoserver · geoserverpublic PoCs found — 48
githubgithub.com/whitebear-ch/GeoServerExploit★ 121githubgithub.com/Chocapikk/CVE-2024-36401★ 86githubgithub.com/Mr-xn/CVE-2024-36401★ 56githubgithub.com/bmth666/GeoServer-Tools-CVE-2024-36401★ 43githubgithub.com/ahisec/geoserver-★ 43githubgithub.com/bigb0x/CVE-2024-36401★ 34githubgithub.com/Niuwoo/CVE-2024-36401★ 4githubgithub.com/justin-p/geoexplorer★ 4githubgithub.com/daniellowrie/CVE-2024-36401-PoC★ 3githubgithub.com/URJACK2025/CVE-2024-36401★ 2githubgithub.com/amoy6228/CVE-2024-36401_Geoserver_RCE_POC★ 2githubgithub.com/0x0d3ad/CVE-2024-36401★ 2githubgithub.com/punitdarji/GeoServer-CVE-2024-36401★ 1githubgithub.com/RevoltSecurities/CVE-2024-36401★ 1githubgithub.com/jakabakos/CVE-2024-36401-GeoServer-RCE★ 0githubgithub.com/funnyDog896/CVE-2024-36401-WoodpeckerPlugin★ 0githubgithub.com/y1s4s/CVE-2024-36401-PoC★ 0githubgithub.com/kkhackz0013/CVE-2024-36401★ 0githubgithub.com/reveravip/Exploit-CVE-2024-36401★ 0githubgithub.com/mantanhacker/CVE-2024-36401-MASS★ 0githubgithub.com/Delt-A/CVE-2024-36401-poc★ 0githubgithub.com/DanieleGiovanardi2408/cve-2024-36401-geoserver-rce★ 0vulncheckvulncheck.com/xdb/e2d5ed5bba08unverifiedvulncheckvulncheck.com/xdb/9a3d3b1933bdunverifiedvulncheckvulncheck.com/xdb/dd85e588e139unverifiedvulncheckvulncheck.com/xdb/c70f778604ccunverifiedvulncheckvulncheck.com/xdb/d7881a6b037bunverifiedvulncheckvulncheck.com/xdb/e908c49bab48unverifiedvulncheckvulncheck.com/xdb/07cf7a5d5e1bunverifiedvulncheckvulncheck.com/xdb/0a69e625f39aunverifiedvulncheckvulncheck.com/xdb/46abf92ec267unverifiedvulncheckvulncheck.com/xdb/83b62ab68571unverifiedvulncheckvulncheck.com/xdb/f4801e6b28d5unverifiedvulncheckvulncheck.com/xdb/1dbce5a4766bunverifiedvulncheckvulncheck.com/xdb/82eba5264bfbunverifiedvulncheckvulncheck.com/xdb/432db9e70d9eunverifiedvulncheckvulncheck.com/xdb/3d8baa68c24cunverifiedvulncheckvulncheck.com/xdb/02f273d018e8unverifiedvulncheckvulncheck.com/xdb/a4b1ddfc8280unverifiedvulncheckvulncheck.com/xdb/8a38414bb4b7unverifiedvulncheckvulncheck.com/xdb/6cff7d86193funverifiedvulncheckvulncheck.com/xdb/584a39f9a9cbunverifiedvulncheckvulncheck.com/xdb/6cab2db287ebunverifiedvulncheckvulncheck.com/xdb/e5537b0b1e67unverifiedvulncheckvulncheck.com/xdb/b1faacbe8f25unverifiedvulncheckvulncheck.com/xdb/fe7544c5185cunverifiedvulncheckvulncheck.com/xdb/ff189f53f3e3unverifiedvulncheckvulncheck.com/xdb/e651061f7feaunverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
References
https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvvhttps://github.com/geotools/geotools/pull/4797https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8whttps://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852https://osgeo-org.atlassian.net/browse/GEOT-7587https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401