CVE-2024-47871

Critical

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.

SeverityCritical
CVSS9.1
Exploit probability—
ProductGradio
PublishedOct 10, 2024
First seenOct 10, 2024
Weakness typeCWE-311CWE-311

How to fix

Update
  • gradio_project gradio5.0.0 or later
  • gradio5.0.0 or later

Affected products

ProductAffected versionsFixed in
gradio_project gradiov < 5.0.05.0.0
gradioPyPIv < 5.0.05.0.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2024-47871 · Gradio · Dark Radar