Skip to content
HighVulnerability

CVE-2024-1540: Gradio command injection in deploy+test-visual.yml workflow

Identifier
CVE-2024-1540
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
2.0%

Summary

CVE-2024-1540 is a command injection flaw in the deploy+test-visual.yml workflow of the gradio-app/gradio repository. The flaw stems from unsafe handling of GitHub context information in a `run` operation, where expressions inside `${{ }}` are evaluated and substituted before the script executes. An attacker can execute unauthorized commands, potentially modifying the base repository or exfiltrating secrets.

Mitigation

Remediation involves setting untrusted input values to intermediate environment variables to prevent direct influence on script generation.