KEV catalog · CISA Known Exploited Vulnerabilities
CVE-2024-36401
9.8
Details
Descriptions
KEV: 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.
NVD: 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.
Compliance SSVC + BOD 26-04
Research metadata
https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv
https://api.github.com/repos/geoserver/geoserver/security-advisories/GHSA-6jj6-gm7p-fcvv
https://raw.githubusercontent.com/nomi-sec/PoC-in-GitHub/master/2024/CVE-2024-36401.json
https://osgeo-org.atlassian.net/browse/GEOS-11223
https://github.com/geoserver/geoserver
https://www.cisa.gov/known-exploited-vulnerabilities-catalog
https://viz.greynoise.io/query/CVE-2024-36401
https://www.shodan.io/search?query=CVE-2024-36401
https://www.cisa.gov/news-events/cybersecurity-advisories/aa25-266a
https://www.darkreading.com/cyberattacks-data-breaches/cisa-attackers-breach-federal-agency-critical-geoserver-flaw
https://github.com/jakabakos/CVE-2024-36401-GeoServer-RCE
https://github.com/bmth666/GeoServer-Tools-CVE-2024-36401
https://geoserver.org/vulnerability/2024/09/12/cve-2024-36401.html
https://blog.certcube.com/geoserver-remote-code-execution-cve-2024-36401/
https://github.com/vulhub/vulhub/blob/master/geoserver/CVE-2024-36401/README.md
https://github.com/Mr-xn/CVE-2024-36401
https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/cves/2024/CVE-2024-36401.yaml
Hunting hypothesis agent
Hunt GeoServer access and WAF logs for /geoserver/wfs requests carrying request=GetPropertyValue or valueReference=exec(java.lang.Runtime.getRuntime(),...) and POST bodies containing a <wfs:valueReference> XPath java call.
Research details
https://github.com/Mr-xn/CVE-2024-36401
https://github.com/bigb0x/CVE-2024-36401
https://github.com/whitebear-ch/GeoServerExploit
https://github.com/ahisec/geoserver-
https://github.com/RevoltSecurities/CVE-2024-36401
https://github.com/justin-p/geoexplorer
https://github.com/daniellowrie/CVE-2024-36401-PoC
https://github.com/jakabakos/CVE-2024-36401-GeoServer-RCE
https://github.com/bmth666/GeoServer-Tools-CVE-2024-36401
https://github.com/netuseradministrator/Geoserver_gui_exp Third-party repos; verify before use.
Tia coverage
When Tia's reporting first covered this CVE and whether a report claimed exploitation before the KEV listing. Lead-time deltas are measured from the exploitation report only — plain coverage is not exploitation intel. See the story links under Mentioned in for coverage detail.
Mentioned in
redops-weavelotus-targets-southeast-asian-governments-for-south
Record schema v1.0. Enrichment is research-grade, not a substitute for analyst review.