Unrestricted Upload of File with Dangerous Type
CVE-2025-48889
Summary
Gradio is an open-source Python package that allows quick building of demos and web applications for machine learning models, API, or any arbitrary Python function.An arbitrary file copy vulnerability in Gradio's flagging feature allowed 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 affects gradio in version prior to 5.31.0.
- LOW
- NETWORK
- NONE
- UNCHANGED
- NONE
- NONE
- NONE
- HIGH
CWE-434 - Unrestricted Upload of File with dangerous type
'Unrestricted file upload with dangerous type' attacks involve an attacker uploading or transferring files of dangerous types to the server. The severity of such an attack depends upon the execution mechanism and the storage location of the uploaded file. Thus, it may range from simple defacement to arbitrary file execution, and complete system takeover.
References
Advisory Timeline
- Published