Skip to content
GradioGHSA-279j-x4gx-hfrh

Gradio uses insecure communication between the FRP client and server

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

GitHub advisory

Affected versions

PackageAffectedFixed in
gradio
PyPI
< 5.0.05.0.0
Details and references

### 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.

CVSS 3.1
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Severity from
GitHub (reviewed advisory)
Weakness
CWE-311
Also known as
CVE-2024-47871, PYSEC-2024-219

More Gradio advisories

All Gradio
DateAdvisory
Oct 102024Gradios's CORS origin validation is not performed when the request has a cookie
CVE-2024-47084High8.8fixed in 4.44.0
Oct 102024Gradio's `is_in_or_equal` function may be bypassed
CVE-2024-47164Medium6.5fixed in 5.0.0
Oct 102024Gradio's CORS origin validation accepts the null origin
CVE-2024-47165Medium5.4fixed in 5.0.0
Oct 102024Gradio has a one-level read path traversal in `/custom_component`
CVE-2024-47166Medium5.3fixed in 4.44.0
Oct 102024Gradio vulnerable to SSRF in the path parameter of /queue/join
CVE-2024-47167Medium7.2fixed in 5.0.0
Oct 102024In Gradio, the `enable_monitoring` flag set to `False` does not disable monitoring
CVE-2024-47168Low4.3fixed in 4.44.0

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.