CVE-2025-48889 Gradio Allows Unauthorized File Copy via Path Manipulation

Medium 5.3 Published Updated

Unauthenticated attackers can copy arbitrary server files to fill disk space, causing denial of service in Gradio applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-48889?

CVE-2025-48889 is a medium-severity path traversal vulnerability in Gradio Project Gradio, published on 30 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Gradio is an open-source Python package that allows quick building of demos and web application for machine learning models, API, or any arbitrary Python function. Prior to version 5.31.0, an arbitrary file copy vulnerability in Gradio's flagging feature allows unauthenticated attackers to copy any readable file from the server's filesystem. While attackers can't read these copied files, they can cause DoS by copying large files (like /dev/urandom) to fill disk space. This issue has been patched in version 5.31.0.

Weakness: CWE-434

Which versions are affected by CVE-2025-48889?

3 open source packages ship an affected version, including gradio. It affects 1 product.

PackageAffectedFixed in
gradio PyPIAll versions5.31.0
gradio PyPIAll versions5.31.0
gradio PyPIFrom 5.25.25.31.0

Products include Gradio Project Gradio.

How do I fix CVE-2025-48889?

Upgrade gradio to 5.31.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-48889 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-48889 exists.

All Gradio Project Gradio vulnerabilities

Sources

Also known as GHSA-8jw3-6x8j-v96g, PYSEC-2025-119.

Is CVE-2025-48889 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free