CVE-2024-0964 LFI in Gradio
Attackers can read arbitrary local files via a vulnerable JSON value in API requests, affecting users of the Gradio library.
- 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-0964?
CVE-2024-0964 is a high-severity path traversal vulnerability in Gradio Project Gradio, published on 5 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A local file include could be remotely triggered in Gradio due to a vulnerable user-supplied JSON value in an API request.
Weakness: CWE-22
Which versions are affected by CVE-2024-0964?
3 open source packages ship an affected version, including gradio. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gradio PyPI | All versions | None |
gradio PyPI | All versions | 4.9.0 |
gradio PyPI | All versions | 4.9.0 |
Products include Gradio Project Gradio.
How do I fix CVE-2024-0964?
Upgrade gradio to 4.9.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-0964 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-0964 exists.
Other vulnerabilities in Gradio Project Gradio
- CVE-2024-39236 Withdrawn Advisory: Gradio was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py
- CVE-2023-6572 Command Injection in gradio-app/gradio
- CVE-2022-24770 Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging
- CVE-2026-49119 Gradio < 6.16.0 Path Traversal via FileExplorer.preprocess()
- CVE-2025-23042 Gradio Blocked Path ACL Bypass Vulnerability
Sources
Also known as GHSA-f3h9-8phc-6gvh, PYSEC-2024-261.