CVE-2024-4253: Command Injection in gradio-app/gradio
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 'GITHUBTOKEN', 'COMMENTTOKEN', and 'CHROMATICPROJECTTOKEN'.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
gradio-app/gradioto a version that resolves this vulnerability.Fixed in @gradio/video@0.6.12 - Compensating control
Review the 'test-functional.yml' workflow to ensure GitHub context values (e.g., head repository full name, head branch, and workflow reference) are sanitized/neutralized before being used in any command invocation to prevent command injection.
- Operational
Rotate any exposed secrets/tokens in case they were exfiltrated during exploitation, including 'GITHUB_TOKEN', 'COMMENT_TOKEN', and 'CHROMATIC_PROJECT_TOKEN'.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-4253?
CVE-2024-4253 is classified as a medium severity command injection vulnerability.
How do I fix CVE-2024-4253?
To fix CVE-2024-4253, update the Gradio software to version 0.6.13 or later.
What software is affected by CVE-2024-4253?
CVE-2024-4253 affects Gradio software versions up to and including 0.6.12.
What type of vulnerability is CVE-2024-4253?
CVE-2024-4253 is a command injection vulnerability that allows unauthorized command execution.
In which component of Gradio is CVE-2024-4253 present?
CVE-2024-4253 is present in the 'test-functional.yml' workflow of the Gradio repository.