CVE-2024-48052 gradio Server Side Request Forgery vulnerability
Attackers can exploit a hidden SSRF vulnerability in Gradio's DownloadButton to access local resources and sensitive information.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-48052?
CVE-2024-48052 is a medium-severity server-side request forgery vulnerability in Gradio Project Gradio, published on 4 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
In gradio <=4.42.0, the gr.DownloadButton function has a hidden server-side request forgery (SSRF) vulnerability. The reason is that within the save_url_to_cache function, there are no restrictions on the URL, which allows access to local target resources. This can lead to the download of local resources and sensitive information.
Weakness: CWE-918
Which versions are affected by CVE-2024-48052?
3 open source packages ship an affected version, including gradio. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gradio PyPI | All versions to 4.42.0 | None |
gradio PyPI | All versions to 4.42.0 | None |
gradio PyPI | All versions to 4.42.0 | None |
Products include Gradio Project Gradio.
How do I fix CVE-2024-48052?
No fix has been published for CVE-2024-48052 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-48052 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-48052 exists.
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-3gf9-wv65-gwh9, PYSEC-2026-1408.