CVE-2024-4253: Command Injection in Gradio test-functional.yml Workflow
- Vendor
- Gradio Project
CVE-2024-4253 is a command injection vulnerability in the gradio-app/gradio repository, specifically within the 'test-functional.yml' GitHub Actions workflow. The vulnerability is due to improper neutralization of user-controlled input (such as repository and branch names) when echoed in shell commands. This allows an attacker to inject arbitrary commands into the workflow execution context, potentially modifying the base repository or exfiltrating sensitive secrets. The issue affects versions up to and including '@gradio/video@0.6.12'.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker with the ability to control the repository or branch name (e.g., via a pull request from a malicious fork) can inject arbitrary shell commands into the workflow. This can lead to the exfiltration of sensitive secrets such as 'GITHUB_TOKEN', 'COMMENT_TOKEN', and 'CHROMATIC_PROJECT_TOKEN', or unauthorized modification of the base repository. The impact is significant as it compromises the integrity and confidentiality of the CI/CD pipeline and associated secrets.
Mitigation
If you can’t patch tonight, do this now.
Restrict workflow permissions to the minimum necessary, especially for secrets. Use GitHub's 'pull_request_target' event with caution and consider limiting which users can trigger workflows from forks. Monitor for suspicious activity in workflow runs and rotate any potentially exposed secrets.
Remediation
Patch, then assume compromise.
Update the 'test-functional.yml' workflow to properly sanitize all user-controlled inputs before using them in shell commands. Use safe quoting and parameterization techniques to prevent command injection. Review and update to a fixed version of the workflow or apply the recommended patch from the vendor.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-4253 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2024-4253 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-4253?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2024-4253.
- Is there a patch for CVE-2024-4253?
- Update the 'test-functional.yml' workflow to properly sanitize all user-controlled inputs before using them in shell commands. Use safe quoting and parameterization techniques to prevent command injection.
- What products are affected by CVE-2024-4253?
- Gradio Project Gradio.
- How severe is CVE-2024-4253?
- CVE-2024-4253 has a CVSS v3.1 score of 9.1 (Critical) and an EPSS score of 1.7% (78th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.