AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

GradioGHSA-279j-x4gx-hfrh

Gradio uses insecure communication between the FRP client and server

Gradio

CVE-2024-47871 · Published Oct 10, 2024 · updated Jan 21, 2025

High8.1
Fix: upgrade to 5.0.0 or later
GitHub advisory

Impact

What kind of vulnerability is it? Who is impacted?

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.

Patches

Yes, please upgrade to gradio>=5 to address this issue.

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

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.

Affected versions

PackageAffectedFixed in
gradio
PyPI
< 5.0.05.0.0
Details and references

More Gradio advisories

All Gradio