CVE-2024-36401: OSGeo GeoServer GeoTools Eval Injection Vulnerability
Yes. CVE-2024-36401 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 15 July 2024. Public exploit code is available: 1 Metasploit module and a Nuclei detection template. EPSS puts the chance of further exploitation attempts in the next 30 days at 99.8%.
- Exploited in real attacks
- Yes. On CISA's exploited list since 15 July 2024
- Used in ransomware
- Not known
- Public exploit code
- 1 Metasploit module and a Nuclei detection template
- Chance of exploitation (EPSS)
- 99.8% in the next 30 days, higher than 99.9% of scored vulnerabilities. Scored 5 December 2026
- Severity (CVSS)
- 9.8 Critical (version 3.1)
- Affects
- OSGeo GeoServer
- Type of flaw
- Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') (CWE-95)
- Published
- 1 July 2024
- US federal patch deadline
- 5 August 2024
What it is
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.
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.
Description from the CVE record.
Is CVE-2024-36401 being exploited?
Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2024-36401 on 15 July 2024. That was 14 days after the CVE was published.
Public exploit code
These are public references that anyone, including an attacker, can find. Their existence lowers the skill needed to use the flaw.
| Source | Entry | Published |
|---|---|---|
| Metasploit | Geoserver unauthenticated Remote Code Execution | |
| Nuclei template | GeoServer RCE in Evaluating Property Name Expressions |
Affected products
- geoserver: >= 2.23.0, < 2.23.6; >= 2.24.0, < 2.24.4; >= 2.25.0, < 2.25.2; < 2.22.6
From the CVE record. Check the vendor advisory for the full list of fixed versions.
What to do
CISA's required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.
How to check whether you are exposed
- Find every copy. List each place OSGeo GeoServer runs, including test systems and anything set up outside IT.
- Compare versions. Match what you find against the affected versions in the vendor advisory.
- Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
- Assume it has been scanned. A public Nuclei template exists for this flaw, so finding exposed systems across the internet is automated.
HackDrill
Find out whether this is reachable in your systems.
A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in GeoServer. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.
Other tracked vulnerabilities in OSGeo products
| CVE | What it affects | Status | EPSS | Published |
|---|---|---|---|---|
| CVE-2026-120705 | OSGeo GeoServer | Public exploit | 40.2% | 30 November 2026 |
| CVE-2026-129243 | OSGeo GeoServer | Public exploit | 36.7% | 30 November 2026 |
| CVE-2025-58360 | OSGeo GeoServer | Public exploit | 61.2% | 25 November 2025 |
| CVE-2022-24816 | OSGeo JAI-EXT | No public exploit found | 99.9% | 13 April 2022 |
Sources
- CVE record for CVE-2024-36401
- NVD entry
- CISA Known Exploited Vulnerabilities catalog, version 2026.12.04
- FIRST EPSS, scores dated 5 December 2026
- github.com (x_refsource_CONFIRM)
- github.com (x_refsource_MISC)
- github.com (x_refsource_MISC)
- github.com (x_refsource_MISC)
- osgeo-org.atlassian.net (x_refsource_MISC)
Machine-readable: /api/cve/CVE-2024-36401.json