CVE-2024-4254
Secrets Exfiltration in gradio-app/gradio
Description
The 'deploy-website.yml' workflow in the gradio-app/gradio repository, specifically in the 'main' branch, is vulnerable to secrets exfiltration due to improper authorization. The vulnerability arises from the workflow's explicit checkout and execution of code from a fork, which is unsafe as it allows the running of untrusted code in an environment with access to push to the base repository and access secrets. This flaw could lead to the exfiltration of sensitive secrets such as GITHUB_TOKEN, HF_TOKEN, VERCEL_ORG_ID, VERCEL_PROJECT_ID, COMMENT_TOKEN, AWSACCESSKEYID, AWSSECRETKEY, and VERCEL_TOKEN. The vulnerability is present in the workflow file located at https://github.com/gradio-app/gradio/blob/72f4ca88ab569aae47941b3fb0609e57f2e13a27/.github/workflows/deploy-website.yml.
INFO
Published Date :
June 4, 2024, 12:15 p.m.
Last Modified :
Oct. 15, 2025, 1:15 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 3.0 | HIGH | [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-4254.
                                        
| URL | Resource | 
|---|---|
| https://huntr.com/bounties/59873fbd-5698-4ec3-87f9-5d70c6055d01 | Exploit Third Party Advisory | 
| https://huntr.com/bounties/59873fbd-5698-4ec3-87f9-5d70c6055d01 | 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-4254 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-4254
            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-4254 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2024-4254 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.
- 
                            CVE Modified by [email protected]Oct. 15, 2025 Action Type Old Value New Value Added CWE CWE-214 Removed CWE CWE-285 
- 
                            Initial Analysis by [email protected]Jul. 30, 2025 Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:gradio_project:gradio:-:*:*:*:*:python:*:* Added Reference Type CVE: https://huntr.com/bounties/59873fbd-5698-4ec3-87f9-5d70c6055d01 Types: Exploit, Third Party Advisory Added Reference Type huntr.dev: https://huntr.com/bounties/59873fbd-5698-4ec3-87f9-5d70c6055d01 Types: Exploit, Third Party Advisory 
- 
                            CVE Modified by af854a3a-2127-422b-91ae-364da2661108Nov. 21, 2024 Action Type Old Value New Value Added Reference https://huntr.com/bounties/59873fbd-5698-4ec3-87f9-5d70c6055d01 
- 
                            CVE Received by [email protected]Jun. 04, 2024 Action Type Old Value New Value Added Description The 'deploy-website.yml' workflow in the gradio-app/gradio repository, specifically in the 'main' branch, is vulnerable to secrets exfiltration due to improper authorization. The vulnerability arises from the workflow's explicit checkout and execution of code from a fork, which is unsafe as it allows the running of untrusted code in an environment with access to push to the base repository and access secrets. This flaw could lead to the exfiltration of sensitive secrets such as GITHUB_TOKEN, HF_TOKEN, VERCEL_ORG_ID, VERCEL_PROJECT_ID, COMMENT_TOKEN, AWSACCESSKEYID, AWSSECRETKEY, and VERCEL_TOKEN. The vulnerability is present in the workflow file located at https://github.com/gradio-app/gradio/blob/72f4ca88ab569aae47941b3fb0609e57f2e13a27/.github/workflows/deploy-website.yml. Added Reference huntr.dev https://huntr.com/bounties/59873fbd-5698-4ec3-87f9-5d70c6055d01 [No types assigned] Added CWE huntr.dev CWE-285 Added CVSS V3 huntr.dev AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N 
 
                         
                         
                         
                                             
                                            