What’s Vulnerable › Vulnerabilities
CVE-2024-51751: Arbitrary file read with File and UploadButton components in Gradio
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-11-06 · updated 2026-06-17
- Weakness: CWE-22
Description
Gradio is an open-source Python package designed to enable quick builds of a demo or web application. If File or UploadButton components are used as a part of Gradio application to preview file content, an attacker with access to the application might abuse these components to read arbitrary files from the application server. This issue has been addressed in release version 5.5.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected products
- gradio-app gradio: from 5.0.0 before 5.5.0 — fixed in 5.5.0
How to fix
Upgrade to a fixed version: gradio-app gradio 5.5.0. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2024-51751 or the next vulnerability affects your stack