Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-48889 EUVD-2025-16432GHSA-8jw3-6x8j-v96gPYSEC-2025-119

Gradio Allows Unauthorized File Copy via Path Manipulation

Published May 30, 2025 · Updated May 30, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
gradio-app gradio < 5.31.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI gradio < 5.31.0 5.31.0 GHSA-8jw3-6x8j-v96g
PyPI gradio >= 5.25.2, < 5.31.0 5.31.0 PYSEC-2025-119

References