CVE-2024-4325 Server-Side Request Forgery (SSRF) in gradio-app/gradio
Attackers can exploit an SSRF flaw in Gradio to access internal networks or cloud metadata via the queue join endpoint.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-4325?
CVE-2024-4325 is a high-severity server-side request forgery vulnerability in Gradio Project Gradio, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A Server-Side Request Forgery (SSRF) vulnerability exists in the gradio-app/gradio version 4.21.0, specifically within the `/queue/join` endpoint and the `save_url_to_cache` function. The vulnerability arises when the `path` value, obtained from the user and expected to be a URL, is used to make an HTTP request without sufficient validation checks. This flaw allows an attacker to send crafted requests that could lead to unauthorized access to the local network or the AWS metadata endpoint, thereby compromising the security of internal servers.
Weakness: CWE-918
Which versions are affected by CVE-2024-4325?
3 open source packages ship an affected version, including gradio. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gradio PyPI | All versions to 4.36.0 | None |
gradio PyPI | All versions to 4.36.0 | None |
gradio PyPI | All versions to 4.36.0 | None |
Products include Gradio Project Gradio.
How do I fix CVE-2024-4325?
No fix has been published for CVE-2024-4325 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2024-4325 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-4325 exists.
Public exploit code: 1 Nuclei template.
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-2023-6572 Command Injection in gradio-app/gradio
- 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
Sources
Also known as GHSA-973g-55hp-3frw, PYSEC-2026-1413.