Advisory

GHSA-8c87-gvhj-xm8m

Also known as: CVE-2024-47867, PYSEC-2024-216

Summary

Gradio lacks integrity checking on the downloaded FRP client

Details

Impact
This vulnerability is a lack of integrity check on the downloaded FRP client, which could potentially allow attackers to introduce malicious code. If an attacker gains access to the remote URL from which the FRP client is downloaded, they could modify the binary without detection, as the Gradio server does not verify the file's checksum or signature.

Who is impacted?
Any users utilizing the Gradio server's sharing mechanism that downloads the FRP client could be affected by this vulnerability, especially those relying on the executable binary for secure data tunneling.

Patches
Yes, please upgrade to gradio>=5.0, which includes a fix to verify the integrity of the downloaded binary.

Workarounds
There is no direct workaround for this issue without upgrading. However, users can manually validate the integrity of the downloaded FRP client by implementing checksum or signature verification in their own environment to ensure the binary hasn't been tampered with.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-10-10 22:02 UTC
Modified
2025-01-21 17:28 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences