What’s Vulnerable › Vulnerabilities
CVE-2024-4253: Command Injection in gradio-app/gradio
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-06-04 · updated 2026-06-17
- Weakness: CWE-78
Description
A command injection vulnerability exists in the gradio-app/gradio repository, specifically within the 'test-functional.yml' workflow. The vulnerability arises due to improper neutralization of special elements used in a command, allowing for unauthorized modification of the base repository or secrets exfiltration. The issue affects versions up to and including '@gradio/video@0.6.12'. The flaw is present in the workflow's handling of GitHub context information, where it echoes the full name of the head repository, the head branch, and the workflow reference without adequate sanitization. This could potentially lead to the exfiltration of sensitive secrets such as 'GITHUB_TOKEN', 'COMMENT_TOKEN', and 'CHROMATIC_PROJECT_TOKEN'.
Affected products
- gradio-app gradio: before 4.29.0 — fixed in 4.29.0
How to fix
Upgrade to a fixed version: gradio-app gradio 4.29.0. Check the vendor advisory for mitigations.
References
- https://github.com/gradio-app/gradio/commit/a0e70366a8a406fdd80abb21e8c88a3c8e682a2b
- https://huntr.com/bounties/23cb3749-8ae9-4e1a-9023-4a20ca6b675e
- https://github.com/gradio-app/gradio/commit/a0e70366a8a406fdd80abb21e8c88a3c8e682a2b
- https://huntr.com/bounties/23cb3749-8ae9-4e1a-9023-4a20ca6b675e
Get alerted when CVE-2024-4253 or the next vulnerability affects your stack