CVE-2024-48052 gradio Server Side Request Forgery vulnerability

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
gradio PyPIAll versions to 4.42.0None
gradio PyPIAll versions to 4.42.0None
gradio PyPIAll versions to 4.42.0None

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.

All Gradio Project Gradio vulnerabilities

Sources

Also known as GHSA-3gf9-wv65-gwh9, PYSEC-2026-1408.

Is CVE-2024-48052 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free