Skip to content
HighVulnerability

CVE-2024-47870: Gradio race condition in update_root_in_config allows backend URL redirection

Identifier
CVE-2024-47870
Published
Record updated
View JSON
Affected
  • gradio < 5.0.0
Fixed in
5.0.0
  • released October 9, 2024, 2 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

CVE-2024-47870 is a race condition in the `update_root_in_config` function of Gradio, an open-source Python package for quick prototyping. An attacker can modify the `root` URL the Gradio frontend uses to reach the backend, redirecting user traffic to a malicious server and potentially exposing authentication credentials or uploaded files. The issue affects all users connecting to a Gradio server, especially internet-exposed deployments.

Mitigation

Upgrade to `gradio>=5`. There are no known workarounds for this issue.