Intel

AIKIDO-2025-10422

gradio is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)CVE-2025-0187 Published Jun 30, 2025

30

Low Risk

This Affects:

PYTHONgradio
4.0.0 - 5.34.2
Fixed in 5.35.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Denial of Service (DoS) due to improper enforcement of file size limits during uploads. An attacker can bypass the user-defined max_file_size by uploading a file with an excessively long filename, potentially exhausting server resources. This patch resolves the issue by correctly passing the max_file_size to the MultiPartParser through the GradioMultiPartParser class.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

gradio is vulnerable to Denial of Service (DoS) in versions 4.0.0 - 5.34.2.

How to fix this

Upgrade the gradio library to the patch version or turn off overflow checking.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform