Live threats

All CVEs / Gradio Project

CVE-2024-47870Gradio Project Gradio

High 7.1

Priority
43
CVSS 4.0
7.1
EPSS
0.7%
probability of exploitation in 30 days · percentile 46
Auth required
Yes
Published
Oct 10, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-362
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

Gradio is an open-source Python package designed for quick prototyping. This vulnerability involves a **race condition** in the `update_root_in_config` function, allowing an attacker to modify the `root` URL used by the Gradio frontend to communicate with the backend. By exploiting this flaw, an attacker can redirect user traffic to a malicious server. This could lead to the interception of sensitive data such as authentication credentials or uploaded files. This impacts all users who connect to a Gradio server, especially those exposed to the internet, where malicious actors could exploit this race condition. Users are advised to upgrade to `gradio>=5` to address this issue. There are no known workarounds for this issue.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gradio.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI gradio < 5.0.0 5.0.0 pip install "gradio>=5.0.0"
PyPI gradio < 5.0.0 5.0.0 pip install "gradio>=5.0.0"

Per OSV / GitHub Advisories (GHSA-xh2x-3mrm-fwqm, PYSEC-2024-218). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gradio_projectgradio< 5.0.0

Official sources

References

Links published by the sources. Open them with care.