# CVE-2024-4253: Command Injection in gradio-app/gradio

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.70%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-04T07:30:56.458Z
- Modified: 2026-07-13T07:15:32.948Z
- Also known as: PYSEC-2024-321
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: @huntr_ai

## 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'.

(As written by CVE List.)

## Affected

- gradio-app gradio-app/gradio: from unspecified before 4.29.0
- gradio_project gradio: before 4.29.0
- gradio (PyPI): before 4.29.0

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://huntr.com/bounties/23cb3749-8ae9-4e1a-9023-4a20ca6b675e> (exploit, evidence, third-party-advisory)
- <https://github.com/gradio-app/gradio/commit/a0e70366a8a406fdd80abb21e8c88a3c8e682a2b> (fix, patch)

## Sources

- CVE List: [CVE-2024-4253](https://www.cve.org/CVERecord?id=CVE-2024-4253), CVE Terms of Use, modified 2025-10-15
- NVD: [CVE-2024-4253](https://nvd.nist.gov/vuln/detail/CVE-2024-4253), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-321](https://osv.dev/vulnerability/PYSEC-2024-321), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2024-4253 · Whole record: https://cve.day/CVE-2024-4253.json · Rebuilt by cve.day 2026-11-25T22:58:41.407Z
