CVE-2024-36401
CVE-2024-36401 is a critical-severity vulnerability in Geoserver with a CVSS 3.x base score of 9.8. It is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, confirming it has been exploited in the wild (added 2024-07-15). The underlying weakness is classified as CWE-94.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- EPSS exploit prediction: 100% (100th percentile)
- Actively exploited: Yes — listed in CISA KEV (added 2024-07-15)
- EU (EUVD) id: EUVD-2024-2280
- EU exploitation: Flagged exploited in the ENISA EU Vulnerability Database (since 2024-07-15)
- Weakness: CWE-94
- Affected product: Geoserver
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-36401?
- 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.
- How severe is CVE-2024-36401?
- CVE-2024-36401 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2024-36401 being actively exploited?
- Yes. CVE-2024-36401 is on CISA's Known Exploited Vulnerabilities (KEV) catalog, added on 2024-07-15, which means active exploitation has been confirmed. It should be prioritised for remediation.
- What products are affected by CVE-2024-36401?
- CVE-2024-36401 primarily affects Geoserver. In total, 6 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2024-36401?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Because this CVE is known to be actively exploited, treat remediation as urgent — CISA KEV typically sets a short remediation deadline.
- Does CVE-2024-36401 have an EU (EUVD) identifier?
- Yes. CVE-2024-36401 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-2280. It is also flagged as exploited in the EUVD (since 2024-07-15).
- When was CVE-2024-36401 published?
- CVE-2024-36401 was published on 2024-07-01 and last updated on 2026-06-17.
References
- https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852
- https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv
- https://github.com/geotools/geotools/pull/4797
- https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w
- https://osgeo-org.atlassian.net/browse/GEOT-7587
- https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401
Affected products (6)
- cpe:2.3:a:geoserver:geoserver:*:*:*:*:*:*:*:*
- cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
- cpe:2.3:a:geotools:geotools:30.0:-:*:*:*:*:*:*
- cpe:2.3:a:geotools:geotools:30.0:rc:*:*:*:*:*:*
- cpe:2.3:a:geotools:geotools:31.0:-:*:*:*:*:*:*
- cpe:2.3:a:geotools:geotools:31.0:rc:*:*:*:*:*:*
More vulnerabilities in Geoserver
- CVE-2023-35042 — Critical (CVSS 9.8): GeoServer 2, in some configurations, allows remote attackers to execute arbitrary code via…
- CVE-2025-58360 — High (CVSS 8.2): GeoServer is an open source server that allows users to share and edit geospatial data. From version 2.26.0 to before…
- CVE-2024-24749 — High (CVSS 7.5): GeoServer is an open source server that allows users to share and edit geospatial data. Prior to versions 2.23.5 and…
- CVE-2023-51444 — High (CVSS 7.2): GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. An…
- CVE-2023-41877 — High (CVSS 7.2): GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. A path…
- CVE-2025-21621 — Medium (CVSS 6.1): GeoServer is an open source server that allows users to share and edit geospatial data. Prior to version 2.25.0, a…
All CVEs affecting Geoserver →
Other CWE-94 (Code Injection) vulnerabilities
- CVE-2026-57624 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Blocksy Companion Pro <= 2.1.46 versions.
- CVE-2026-10134 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 allows an attacker to read every secret available to the Langflow process, read…
- CVE-2026-53576 — Critical (CVSS 10.0): Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, the authentication filter…
- CVE-2026-10561 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 has an vulnerability due to an improper isolation of Python execution combined…
- CVE-2026-25470 — Critical (CVSS 10.0): Improper Control of Generation of Code ('Code Injection') vulnerability in ACPT ACPT (Pro) - Custom Post Types Plugin…
- CVE-2026-48836 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Easy Invoice <= 2.1.19 versions.