Vulnerability · Published May 30, 2025 · Assigned by GitHub_M
CVE-2025-48889Gradio Allows Unauthorized File Copy via Path Manipulation
Medium 5.3
In plain English
A medium-severity unrestricted file upload in gradio from gradio-app. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | gradio | 5.31.0 | GHSA-8jw3-6x8j-v96g |
| PyPI | gradio | 5.31.0 | PYSEC-2025-119 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| gradio-app | gradio | < 5.31.0 |
Weakness: CWE-434 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/gradio-app/gradio/security/advisories/GHSA-8jw3-6x8j-v96g x_refsource_CONFIRM