NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Gradio

CVE-2024-47867: Gradio lacks integrity checking on the downloaded FRP client

highCVSS 4.0 7.5 · 3.1 7.5GHSA-8c87-gvhj-xm8m

Gradio before 5.0 downloads the FRP client binary for its sharing feature without checking a checksum or signature. Someone who can tamper with the download location can swap in a malicious binary that Gradio then runs. Upgrade to gradio 5.0.0, which verifies the download.

Published Oct 10, 2024 · Updated Jan 21, 2025 · Analysis Nov 1, 2026

What an attacker can do

Gradio's sharing mechanism fetches a Fast Reverse Proxy (FRP) client from a remote URL and runs it to build a tunnel. Before 5.0 the server did not verify the file's checksum or signature. If an attacker gains access to the remote URL, or can alter the download in transit, they can change the binary and nothing detects it.

The binary then runs on the machine of whoever uses the sharing feature, so the attacker gets code execution as that user. The CVSS vectors rate attack complexity high and user interaction as needed, since the attacker must first control the download source and the victim must start sharing. High confidentiality, integrity and availability impact follow from running attacker code.

The people exposed are those who use Gradio's sharing mechanism, especially those relying on the binary for tunneling data. A developer's laptop or a notebook server that holds model credentials is the likely target. The advisory does not name share=True as the trigger, only the sharing mechanism.

Who is affected

gradio on pip, all versions below 5.0.0. Only installs that use the sharing mechanism and download the FRP client are in scope. Check the version:

pip show gradio

Also review code that launches apps with sharing enabled.

gradio

Ecosystem
PyPI
Affected
< 5.0.0
Fixed in
5.0.0
Check
pip show gradio

How to fix it

Upgrade to gradio 5.0 or later; the package data gives 5.0.0 as the patched version:

pip install --upgrade "gradio>=5.0"

The advisory says there is no direct workaround short of upgrading. As a stopgap you can check the checksum or signature of the downloaded FRP client yourself, in your own environment, so a tampered binary is caught.

How to tell if you were hit

Find the FRP client binary that Gradio downloaded on the host and compare its hash against a known-good copy from the FRP project. Look for unexpected child processes, outbound connections or new files from Python processes that run Gradio with sharing enabled. Review when the binary was last written.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to ahpaleus, Vasco-jofra.

Questions

What does CVE-2024-47867 let an attacker do?

Replace the FRP client binary that Gradio downloads for sharing, without detection, because Gradio before 5.0 does not verify its checksum or signature. The altered binary runs on the user's machine.

Is there a workaround?

Not short of upgrading. The advisory says you can add your own checksum or signature verification for the downloaded binary.

Which version fixes it?

gradio 5.0.0, which verifies the integrity of the downloaded binary.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Gradio vulnerabilities

All Gradio entries