CVE-2025-48889: gradio · Unrestricted File Upload
Affects gradioSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 5.31.0 when convenient.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 52% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.31.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 30 May 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade gradio to 5.31.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIgradiopkg:pypi/gradioOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade Gradio installations to version 5.31.0 or later, where the vulnerability is patched. For environments where immediate upgrade is not feasible, implement strict network-level access controls to restrict exposure of Gradio applications to trusted users only. Employ application-layer firewalls or reverse proxies to monitor and block suspicious file operations related to the flagging feature. Regularly monitor disk usage and set alerts for abnormal increases that could indicate exploitation attempts. Additionally, review and harden file system permissions to limit the ability of the Gradio application process to access sensitive or large files such as /dev/urandom. Incorporate security testing in the CI/CD pipeline to detect similar unrestricted file upload or copy vulnerabilities in custom extensions or integrations. Finally, educate development and operations teams about secure handling of file uploads and flagging mechanisms to prevent recurrence.
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.