CVE-2024-1540

published 27 Mar 2024 · updated 21 Aug 2024

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

8.6HighCVSS 8.6EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in N/A.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
gradio-app<N/AN/A

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-1540 severity on Zeptric[![CVE-2024-1540](https://zeptric.io/badge/cve/CVE-2024-1540.svg)](https://zeptric.io/cve/CVE-2024-1540)