CVE-2023-6572 Command Injection in gradio-app/gradio
Attackers can execute arbitrary commands via input in the Gradio library, requiring an upgrade to the latest version.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-6572?
CVE-2023-6572 is a critical command injection vulnerability in Gradio Project Gradio, published on 14 Dec 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Command Injection in GitHub repository gradio-app/gradio prior to main.
Weakness: CWE-77
Which versions are affected by CVE-2023-6572?
3 open source packages ship an affected version, including gradio. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gradio PyPI | All versions | 4.14.0 |
gradio PyPI | All versions | 4.14.0 |
gradio PyPI | All versions | 4.14.0 |
Products include Gradio Project Gradio.
How do I fix CVE-2023-6572?
Upgrade gradio to 4.14.0 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2023-6572 being exploited?
There is no known exploitation of CVE-2023-6572 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Gradio Project Gradio
- CVE-2024-39236 Withdrawn Advisory: Gradio was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py
- CVE-2022-24770 Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging
- CVE-2026-49119 Gradio < 6.16.0 Path Traversal via FileExplorer.preprocess()
- CVE-2025-23042 Gradio Blocked Path ACL Bypass Vulnerability
- CVE-2024-4325 Server-Side Request Forgery (SSRF) in gradio-app/gradio
Sources
Also known as GHSA-gqvf-3hgp-5hxv, PYSEC-2023-255.