Skip to content
Path traversal Disclosed report Intermediate CVE-2024-10648

Gradio Vulnerable to Arbitrary File Deletion

The Gradio Audio component allowed an attacker to control the audio file format, which led to arbitrary file content deletion. By manipulating the output format, an attacker could reset any file to empty, causing a denial of service on the server.

gradio

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-pgfv-gvc5-prfg, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Audio component used the attacker-supplied format value directly in a file path without validating or sanitising it, allowing path traversal.

Impact

An attacker could reset any file to an empty file, causing a denial of service on the server.

What the attacker needed

Access to the Gradio Audio component

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Gradio is a tool for building web interfaces for machine learning models. The Audio component lets users upload or process audio, and it used the format they chose to name and save files. Because the format was not checked, someone could make the component overwrite or empty other files on the server, which could stop the service from working.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from gradio

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.