CVE-2025-48889 Details
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.
An arbitrary file copy vulnerability has been identified in Gradio versions prior to 5.31.0, within the flagging feature. This vulnerability allows unauthenticated attackers to copy any readable file from the server's filesystem. While the copied files cannot be read by the attackers, this vulnerability can be exploited to cause a denial-of-service by copying large files, such as /dev/urandom, to fill up disk space. The issue arises because the flagging component does not properly validate file paths before initiating the copy, enabling the unauthorized file access.
Users are advised to update Gradio to version 5.31.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gradio-app/gradio/security/advisories/GHSA-8jw3-6x8j-v96g | CISA-ADP | ExploitThird Party Advisory |
| https://github.com/gradio-app/gradio/security/advisories/GHSA-8jw3-6x8j-v96g | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-434 | Unrestricted Upload of File with Dangerous Type | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gradio project gradio | >= 5.25.2, < 5.31.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 26, 2025 | Initial Analysis | [email protected] |
| May 30, 2025 | CVE Modified | CISA-ADP |
| May 30, 2025 | New CVE Received | [email protected] |