CVE-2024-10648: Gradio Vulnerable to Arbitrary File Deletion
Gradio 4.0.0 through 5.0.0b2 has a path traversal flaw in its Audio component. An attacker who controls the audio output format can reset any file the server can write to an empty file, which causes denial of service. The advisory lists no patched version.
Published Mar 20, 2025 · Analysis Nov 10, 2026
What an attacker can do
The flaw is in the Audio component, in gradio/processing_utils.py (the source link points at line 234 of the commit named in the report). The output format of the audio file is attacker-controlled and is used in building a file path without enough checking, so path traversal sequences can point the write at another file. By manipulating the output format, the attacker resets that file to empty content.
The advisory says the attacker needs no privileges and no user interaction, only network access to a Gradio app that exposes the Audio component. The harm is destruction of file content: configuration, model or data files that the Gradio process can write can be emptied, and the app or host may stop working. The sources do not describe file reads or code execution. The advisory scores it high (CVSS 3.0 of 8.2).
Who is affected
The pip package gradio, versions from 4.0.0 up to and including 5.0.0b2, for apps that use the Audio component. Check:
pip show gradioSearch your app for gr.Audio to see whether the component is in use.
gradio
- Ecosystem
- PyPI
- Affected
- >= 4.0.0, <= 5.0.0b2
- Fixed in
- No patched version yet
- Check
pip show gradio
How to fix it
There is no patched version listed in the advisory. The affected range ends at 5.0.0b2. Check the Gradio releases for a newer version and move to the latest stable release if the one you reach is outside the affected range. The sources give no workaround. Until then, run the app as a user that can write only to its own working directory, keep it off untrusted networks, and keep backups of files it can write.
How to tell if you were hit
Look for files that became empty without a reason, especially config, model or data files writable by the Gradio process. Check Gradio request logs for audio requests whose format value contains ../ sequences, and for application errors about missing or empty files.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
A path traversal vulnerability exists in the Gradio Audio component of gradio-app/gradio, as of version git 98cbcae. This vulnerability allows an attacker to control the format of the audio file, leading to arbitrary file content deletion. By manipulating the output format, an attacker can reset any file to an empty file, causing a denial of service (DOS) on the server.
Questions
- Is there a patched Gradio version for CVE-2024-10648?
The advisory lists none. It marks versions from 4.0.0 through 5.0.0b2 as affected, so check the Gradio releases for a newer version.
- Does the attacker need to log in?
The advisory rates the attack as network-reachable with no privileges and no user interaction.
- What does the attacker get?
The ability to reset any file the Gradio process can write to an empty file, causing denial of service. The sources describe no file read or code execution.
- Which component is affected?
The Audio component, where the audio output format is attacker-controlled and leads to path traversal.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Gradio vulnerabilities
All Gradio entriesCVE-2026-49119
Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks
high7.5Jul 1, 2026CVE-2026-10783
Gradio: Audio cache key ignores metadata when saving numpy audio outputs
low2.5Jun 4, 2026CVE-2026-48545
Gradio contains a cookie injection vulnerability
high6.8May 27, 2026CVE-2026-27167
Gradio: Mocked OAuth Login Exposes Server Credentials and Uses Hardcoded Session Secret
lowMar 1, 2026CVE-2026-28414
Gradio is Vulnerable to Absolute Path Traversal on Windows with Python 3.13+
high7.5Mar 1, 2026CVE-2026-28415
Gradio has an Open Redirect in its OAuth Flow
medium4.3Mar 1, 2026
