draft preview · not published · notes marked "Before launch" will not appear on the live site

Home / Known exploited

CVE-2024-36401: OSGeo GeoServer GeoTools Eval Injection Vulnerability

Exploited in attacksPublic exploit code

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.

Affected products

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

  1. Find every copy. List each place OSGeo GeoServer runs, including test systems and anything set up outside IT.
  2. Compare versions. Match what you find against the affected versions in the vendor advisory.
  3. Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
  4. 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

CVEWhat it affectsStatusEPSSPublished
CVE-2026-120705OSGeo GeoServerPublic exploit40.2%30 November 2026
CVE-2026-129243OSGeo GeoServerPublic exploit36.7%30 November 2026
CVE-2025-58360OSGeo GeoServerPublic exploit61.2%25 November 2025
CVE-2022-24816OSGeo JAI-EXTNo public exploit found99.9%13 April 2022

Sources

Machine-readable: /api/cve/CVE-2024-36401.json