CVE-2025-48889 Gradio Allows Unauthorized File Copy via Path Manipulation
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.
| Package | Affected | Fixed in |
|---|---|---|
gradio PyPI | All versions | 5.31.0 |
gradio PyPI | All versions | 5.31.0 |
gradio PyPI | From 5.25.2 | 5.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.
Other vulnerabilities in Gradio Project Gradio
- CVE-2024-39236 Withdrawn Advisory: Gradio was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py
- CVE-2023-6572 Command Injection in gradio-app/gradio
- CVE-2022-24770 Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging
- CVE-2026-49119 Gradio < 6.16.0 Path Traversal via FileExplorer.preprocess()
- CVE-2025-23042 Gradio Blocked Path ACL Bypass Vulnerability
Sources
Also known as GHSA-8jw3-6x8j-v96g, PYSEC-2025-119.