Arbitrary file upload in Gradio - CVE-2025-48889

 

Arbitrary file upload in Gradio - CVE-2025-48889

Published: June 23, 2025


Vulnerability identifier: #VU111747
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-48889
CWE-ID: CWE-434
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to the flagging component does not properly validate file paths before copying files. A remote attacker can send specially crafted requests and copy any readable file from the server's filesystem.


Affected software

Gradio

How to mitigate CVE-2025-48889

Install updates from vendor's website.

Gradio - update to 5.31.0

External References

Related Security Bulletins