CVE-2024-4325 Server-Side Request Forgery (SSRF) in gradio-app/gradio

High 8.6 Published Updated

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.

PackageAffectedFixed in
gradio PyPIAll versions to 4.36.0None
gradio PyPIAll versions to 4.36.0None
gradio PyPIAll versions to 4.36.0None

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.

All Gradio Project Gradio vulnerabilities

Sources

Also known as GHSA-973g-55hp-3frw, PYSEC-2026-1413.

Is CVE-2024-4325 in your software?

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

Check your SBOMs for free