Skip to main content
← All vulnerabilities
CVE-2024-1540GHSA-XCGP-R7R8-2HC9

Command Injection in gradio-app/gradio via deploy+test-visual.yml workflow

Published
Last modified
published
Not listed in CISA KEV
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

A command injection vulnerability exists in the deploy+test-visual.yml workflow of the gradio-app/gradio repository, due to improper neutralization of special elements used in a command. This vulnerability allows attackers to execute unauthorized commands, potentially leading to unauthorized modification of the base repository or secrets exfiltration. The issue arises from the unsafe handling of GitHub context information within a `run` operation, where expressions inside `${{ }}` are evaluated and substituted before script execution. Remediation involves setting untrusted input values to intermediate environment variables to prevent direct influence on script generation.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • gradio-app gradio-app/gradio

    Version range not reported

References 3

huntr.com

GitHub · gradio-app/gradio

GitHub · pvharmo2/gha-lab-8e9316151c