CVE-2024-36401
CONFIRMED EXPLOITEDOSGeo GeoServer GeoTools Eval Injection Vulnerability
Is OSGeo GeoServer affected by CVE-2024-36401?
OSGeo GeoServer is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2024-36401, added on 2024-07-15. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (11 vulnerable CPE entries): osgeo geoserver and osgeo geotools.
Published CPE version bounds mark releases below 31.2 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2024-08-05.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2026-129243Same productOSGeo GeoServer
OSGeo GeoServer Incorrect Authorization Vulnerability
- CVE-2026-120705Same productOSGeo GeoServer
OSGeo GeoServer XML Injection Vulnerability
- CVE-2025-58360Same productOSGeo GeoServer
OSGeo GeoServer Improper Restriction of XML External Entity Reference Vulnerability
- CVE-2022-24816Same vendorOSGeo JAI-EXT
OSGeo GeoServer JAI-EXT Code Injection Vulnerability
- CVE-2024-38112Neighboring entryMicrosoft Windows
Microsoft Windows MSHTML Platform Spoofing Vulnerability
- CVE-2022-22948Neighboring entryVMware vCenter Server
VMware vCenter Server Incorrect Default File Permissions Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
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.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2024-07-15. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of GeoServer has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- Network service surface (OSGeo GeoServer): inspect perimeter and internal flow telemetry (`Zeek conn.log`, `Suricata eve.json`) and host service logs for anomalous connection bursts, protocol errors, or unexpected child processes.
- Inventory all hosts running OSGeo GeoServer and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
- https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852ExploitThird Party Advisory
- https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvvMitigationVendor Advisory
- https://github.com/geotools/geotools/pull/4797Issue TrackingPatch
- https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8wExploitVendor Advisory
- https://osgeo-org.atlassian.net/browse/GEOT-7587Vendor Advisory
- https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852ExploitThird Party Advisory
- https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvvMitigationVendor Advisory
- https://github.com/geotools/geotools/pull/4797Issue TrackingPatch
- https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8wExploitVendor Advisory
- https://osgeo-org.atlassian.net/browse/GEOT-7587Vendor Advisory
- https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401ExploitThird Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401US Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Endpoint visibility, digital forensics, and incident response (DFIR) platform
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
VirusTotal's memory-safe Rust rewrite of YARA for binary & implant hunting