CVE-2025-48889Gradio Project Gradio
High 7.5 No auth needed
Follow: this CVE · Gradio Project · Gradio Project Gradio We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- May 30, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-434
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Gradio.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | gradio |
< 5.31.0 |
5.31.0 |
pip install "gradio>=5.31.0" |
| PyPI | gradio |
≥ 5.25.2 < 5.31.0 |
5.31.0 |
pip install "gradio>=5.31.0" |
Per OSV / GitHub Advisories (GHSA-8jw3-6x8j-v96g, PYSEC-2025-119). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gradio_project | gradio | ≥ 5.25.2 < 5.31.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory