CVE-2024-8966 Denial of Service in gradio-app/gradio
An attacker can cause a denial of service in Gradio by sending a multipart request with an excessively long boundary string, rendering the service inaccessible.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-8966?
CVE-2024-8966 is a high-severity denial of service vulnerability in gradio-app/gradio, 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 vulnerability in the file upload process of gradio-app/gradio version @gradio/[email protected] allows for a Denial of Service (DoS) attack. An attacker can append a large number of characters to the end of a multipart boundary, causing the system to continuously process each character and issue warnings. This can render Gradio inaccessible for extended periods, disrupting services and causing significant downtime.
Weakness: CWE-770
Which versions are affected by CVE-2024-8966?
3 open source packages ship an affected version, including gradio. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gradio PyPI | All versions to 5.22.0 | None |
gradio PyPI | All versions to 5.22.0 | None |
gradio PyPI | All versions to 5.22.0 | None |
Products include Gradio Video.
How do I fix CVE-2024-8966?
No fix has been published for CVE-2024-8966 yet. Limit exposure of the affected software until one is available.
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-8966 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8966 exists.
Sources
Also known as CVE-2024-12759, GHSA-5cpq-9538-jm2j, PYSEC-2026-1410.