CVE-2024-47871 Insecure communication between the FRP client and server in Gradio

High 8.2 Published Updated

Attackers can intercept and modify data in transit when Gradio demos are shared publicly without HTTPS, exposing sensitive information.

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-47871?

CVE-2024-47871 is a high-severity vulnerability in Gradio Project Gradio, published on 10 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Gradio is an open-source Python package designed for quick prototyping. This vulnerability involves **insecure communication** between the FRP (Fast Reverse Proxy) client and server when Gradio's `share=True` option is used. HTTPS is not enforced on the connection, allowing attackers to intercept and read files uploaded to the Gradio server, as well as modify responses or data sent between the client and server. This impacts users who are sharing Gradio demos publicly over the internet using `share=True` without proper encryption, exposing sensitive data to potential eavesdroppers. Users are advised to upgrade to `gradio>=5` to address this issue. As a workaround, users can avoid using `share=True` in production environments and instead host their Gradio applications on servers with HTTPS enabled to ensure secure communication.

Weakness: CWE-311

Which versions are affected by CVE-2024-47871?

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

PackageAffectedFixed in
gradio PyPIAll versions5.0.0
gradio PyPIAll versions5.0.0
gradio PyPIAll versions5.0.0

Products include Gradio Project Gradio.

How do I fix CVE-2024-47871?

Upgrade gradio to 5.0.0 or later.

Is CVE-2024-47871 being exploited?

There is no known exploitation of CVE-2024-47871 in the wild and no public exploit code.

All Gradio Project Gradio vulnerabilities

Sources

Also known as GHSA-279j-x4gx-hfrh, PYSEC-2024-219.

Is CVE-2024-47871 in your software?

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

Check your SBOMs for free