PT-2024-18255 · Gradio · Gradio
Published
2024-03-21
·
Updated
2024-05-21
·
CVE-2024-1727
CVSS v3.1
4.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
Name of the Vulnerable Software and Affected Versions
gradio versions prior to 4.19.2
Description
A Cross-Site Request Forgery (CSRF) issue allows attackers to upload multiple large files to a victim's system if they are running Gradio locally. By crafting a malicious HTML page that triggers an unauthorized file upload to the victim's server, an attacker can deplete the system's disk space, potentially leading to a denial of service. This issue affects the file upload functionality as implemented in gradio/routes.py. The problem can be exploited by malicious third-party websites making requests to Gradio applications running locally.
Recommendations
For gradio versions prior to 4.19.2, update to Gradio version 4.19.2 or higher to resolve the issue. As a temporary workaround, consider restricting access to the file upload functionality until the update is applied.
Exploit
Fix
DoS
CSRF
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Gradio