CVE-2024-51751
Arbitrary file read with File and UploadButton components in Gradio
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.
INFO
Published Date :
Nov. 6, 2024, 8:15 p.m.
Last Modified :
Aug. 26, 2025, 4:34 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] | 
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2024-51751.
                                        
| URL | Resource | 
|---|---|
| https://github.com/gradio-app/gradio/security/advisories/GHSA-rhm9-gp5p-5248 | Exploit Third Party Advisory | 
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2024-51751 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2024-51751
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2024-51751 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2024-51751 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            Initial Analysis by [email protected]Aug. 26, 2025 Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* versions from (including) 5.0.0 up to (excluding) 5.5.0 Added Reference Type GitHub, Inc.: https://github.com/gradio-app/gradio/security/advisories/GHSA-rhm9-gp5p-5248 Types: Exploit, Third Party Advisory 
- 
                            CVE Received by [email protected]Nov. 06, 2024 Action Type Old Value New Value Added 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. Added Reference GitHub, Inc. https://github.com/gradio-app/gradio/security/advisories/GHSA-rhm9-gp5p-5248 [No types assigned] Added CWE GitHub, Inc. CWE-22 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 
 
                         
                         
                         
                                             
                                            