AgentbeamBeta
AI agent vulnerability · Gradio

CVE-2024-10648: Gradio Vulnerable to Arbitrary File Deletion

highCVSS 3.0 8.2GHSA-pgfv-gvc5-prfg

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 gradio

Search 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 entries