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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.7%top 47.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
PyPIgradio5.31.0GHSA-8jw3-6x8j-v96g
PyPIgradio5.31.0PYSEC-2025-119

Affected products (as reported)

VendorProductVersions
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