Advisory

PYSEC-2024-219

Also known as: CVE-2024-47871, GHSA-279j-x4gx-hfrh

Summary

The record has no summary.

Details

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.

Severity

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Dates

Published
2024-10-10 23:15 UTC
Modified
2025-01-19 22:56 UTC

Affected packages and fixes

gradio

PyPI · All systems

Affected

  • introduced 0, fixed 5.0.0 (ecosystem)

Fixed versions

5.0.0

Fix

  • Fixed version 5.0.0
    pip install --upgrade gradio==5.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences