What’s Vulnerable › Vulnerabilities
CVE-2024-1727: CSRF Vulnerability in gradio-app/gradio
- Severity: medium (CVSS 4.3 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-03-21 · updated 2026-06-17
- Weakness: CWE-352
Description
A Cross-Site Request Forgery (CSRF) vulnerability in gradio-app/gradio 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.
Affected products
- gradio-app gradio: from 4.16.0 before 4.19.2 — fixed in 4.19.2
How to fix
Upgrade to a fixed version: gradio-app gradio 4.19.2. Check the vendor advisory for mitigations.
References
- https://github.com/gradio-app/gradio/commit/84802ee6a4806c25287344dce581f9548a99834a
- https://huntr.com/bounties/a94d55fb-0770-4cbe-9b20-97a978a2ffff
- https://github.com/gradio-app/gradio/commit/84802ee6a4806c25287344dce581f9548a99834a
- https://huntr.com/bounties/a94d55fb-0770-4cbe-9b20-97a978a2ffff
Get alerted when CVE-2024-1727 or the next vulnerability affects your stack