SecurityContext

CVE-2024-4254: GitHub Actions - Insecure Deserialization

  • Cve: CVE-2024-4254
  • Name: GitHub Actions - Insecure Deserialization
  • 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.
  • Impact: Attackers can exfiltrate sensitive secrets like tokens and keys, leading to potential full account or infrastructure compromise.
  • Remediation: Modify the workflow to avoid executing code from forks or untrusted sources; restrict permissions and validate code before execution.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: information_disclosure, remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to push malicious code to a fork and trigger the workflow
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.1
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
  • Epss score: 0.0047
  • Epss percentile: 0.41438
  • Assignee: [email protected]
  • Published at: 2024-06-04T12:15:13Z
  • Age in days: 903
  • Modified at: 2026-06-17T08:01:32Z
  • Public exploits total: 2
  • References total: 1
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-4254
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-214Invocation of Process Using Visible Sensitive Information

Public exploits

UrlSourceAdded date
https://huntr.com/bounties/59873fbd-5698-4ec3-87f9-5d70c6055d01nvd2024-06-04
https://github.com/pvharmo2/gha-lab-40e23db109poc-in-github2026-09-02

References

UrlSourceTags
https://huntr.com/bounties/59873fbd-5698-4ec3-87f9-5d70c6055d01nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
gradio_project:gradioall versionsnonvd/v1/products/gradio_project/gradio

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2024-06-04
  • Remote: yes
  • Exposed hosts: 2932
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports