Skip to content
DoS Disclosed report Intermediate CVE-2024-8966

Gradio DOS in multipart boundry while uploading the file

A vulnerability in Gradio's file upload handling allows an attacker to append many characters to a multipart boundary, causing the system to process each character and issue warnings. This can render Gradio inaccessible for extended periods, disrupting services.

gradio-app/gradio

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-5cpq-9538-jm2j, 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 multipart parser does not limit the length of the boundary string, so it processes each appended character individually and logs warnings, leading to resource exhaustion.

Impact

This could render Gradio inaccessible for extended periods, disrupting services and causing significant downtime.

What the attacker needed

Ability to send a file upload request

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.

When you upload a file, the data is split into parts separated by a 'boundary' marker. If an attacker makes that marker extremely long, the server wastes time processing every extra character, which can make the service slow or unavailable for others.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More from gradio-app/gradio

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.