CVE-2024-9340 Denial of Service (DoS) via Multipart Boundary in zenml-io/zenml
Unauthenticated attackers can cause a denial of service by sending malformed multipart requests that trigger an infinite loop in ZenML.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-9340?
CVE-2024-9340 is a high-severity denial of service vulnerability in zenml-io/zenml, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A Denial of Service (DoS) vulnerability in zenml-io/zenml version 0.66.0 allows unauthenticated attackers to cause excessive resource consumption by sending malformed multipart requests with arbitrary characters appended to the end of multipart boundaries. This flaw in the multipart request boundary processing mechanism leads to an infinite loop, resulting in a complete denial of service for all users. Affected endpoints include `/api/v1/login` and `/api/v1/device_authorization`.
Weakness: CWE-835
Which versions are affected by CVE-2024-9340?
3 open source packages ship an affected version, including zenml. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
zenml PyPI | All versions | 0.68.0 |
zenml PyPI | All versions | 0.68.0 |
zenml PyPI | All versions | 0.68.0 |
Products include Zenml Zenml.
How do I fix CVE-2024-9340?
Upgrade zenml to 0.68.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-9340 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-9340 exists.
Other vulnerabilities in zenml-io/zenml
Sources
Also known as GHSA-6gmf-2369-c76c, PYSEC-2025-57.