Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2024-36404: RCE via XPath Injection in GeoTools

Published Jul 2, 2024 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS76.1%100th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Geotools
IdentifiersCVE-2024-36404CWE-94

CVE-2024-36404 is a remote code execution vulnerability in GeoTools, an open source Java library for geospatial data. The vulnerability exists in versions prior to 31.2, 30.4, and 29.6, and is triggered when user-supplied input is evaluated as XPath expressions by certain GeoTools functionality. This allows attackers to inject and execute arbitrary code on the affected system if the application processes untrusted XPath expressions via GeoTools.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows an attacker to achieve remote code execution on the target system, potentially leading to full system compromise, data exfiltration, or further lateral movement within the environment.

Mitigation

If you can’t patch tonight, do this now.

As a temporary mitigation, remove the 'gt-complex' jar from the application to disable the vulnerable functionality, though this will reduce application features such as application schema datastore support. Ensure that user input is not directly evaluated as XPath expressions wherever possible.

Remediation

Patch, then assume compromise.

Upgrade GeoTools to version 31.2, 30.4, or 29.6, which contain the fix for this vulnerability. Alternatively, use the drop-in replacement GeoTools jars provided on SourceForge for affected versions if immediate upgrade is not possible.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
cve-2024-36401-geoserver-rceRepository is a self-contained reproduction and exploit study for CVE-2024-36401, an unauthenticated GeoServer RCE caused by unsafe JXPath evaluation in GeoTools. It is not tied to a major exploit framework; the main exploit logic is implemented in `exploit/exploit.py` with a secondary curl-based PoC in `exploit/exploit.sh`. Structure: `docker/` contains two nearly identical Dockerfiles that build GeoServer 2.25.1 (vulnerable) and 2.25.2 (patched) from official SourceForge binaries; `docker-compose.yml` exposes them on localhost ports 8080 and 8081; `exploit/` contains the Python exploit/verifier, shell PoC, payload catalog, and captured proof artifacts; `run-reproduction.sh` automates build, readiness checks, exploitation of both instances, and proof collection; `report/report.md` is a detailed technical write-up. Exploit capability: the Python script first enumerates layers via WFS GetCapabilities, then sends WFS GetPropertyValue requests with attacker-controlled `valueReference` values. It uses a blind timing payload `java.lang.Thread.sleep(8000)` to detect code execution from client-side response delay, and a command-execution payload `exec(java.lang.Runtime.getRuntime(),'touch /tmp/<marker>')` to create a file inside the target container. The shell PoC demonstrates the same technique with GET and POST/XML requests and documents that POST may help bypass defenses inspecting only query strings. `payloads.md` also documents alternate vectors through WFS GetFeature and WMS GetMap using `CQL_FILTER`. Observed behavior in included logs confirms real exploitation on the vulnerable instance: the blind probe delays the response by ~8 seconds and the file `/tmp/cve3641_1780498920` is created only on the vulnerable container. On the patched instance, the same payloads are rejected with `No such attribute` errors and no file is created. Overall, this is a legitimate operational PoC/verifier for unauthenticated web/network RCE against vulnerable GeoServer deployments.DanieleGiovanardi2408 · Disclosed Jun 3, 2026 · python · bash · web · networkOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
GeotoolsGeotoolsapplication
FAQ

Frequently asked questions

Is CVE-2024-36404 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2024-36404 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2024-36404?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-36404, the earliest disclosed Jun 3, 2026.
Is there a patch for CVE-2024-36404?
Upgrade GeoTools to version 31.2, 30.4, or 29.6, which contain the fix for this vulnerability. Alternatively, use the drop-in replacement GeoTools jars provided on SourceForge for affected versions if immediate upgrade is not possible.
What products are affected by CVE-2024-36404?
Geotools.
How severe is CVE-2024-36404?
CVE-2024-36404 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 76.1% (100th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

No public activity tracked yet. Mallory keeps watching.

View more in app →

No public activity observed for this vulnerability.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.