CVE-2024-0964 LFI in Gradio

High 7.5 Published Updated

Attackers can read arbitrary local files via a vulnerable JSON value in API requests, affecting users of the Gradio library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-0964?

CVE-2024-0964 is a high-severity path traversal vulnerability in Gradio Project Gradio, published on 5 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A local file include could be remotely triggered in Gradio due to a vulnerable user-supplied JSON value in an API request.

Weakness: CWE-22

Which versions are affected by CVE-2024-0964?

3 open source packages ship an affected version, including gradio. It affects 1 product.

PackageAffectedFixed in
gradio PyPIAll versionsNone
gradio PyPIAll versions4.9.0
gradio PyPIAll versions4.9.0

Products include Gradio Project Gradio.

How do I fix CVE-2024-0964?

Upgrade gradio to 4.9.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-0964 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-0964 exists.

All Gradio Project Gradio vulnerabilities

Sources

Also known as GHSA-f3h9-8phc-6gvh, PYSEC-2024-261.

Is CVE-2024-0964 in your software?

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

Check your SBOMs for free