Race condition in Gradio - CVE-2024-47870

 

Race condition in Gradio - CVE-2024-47870

Published: October 10, 2024 / Updated: April 28, 2026


Vulnerability identifier: #VU128284
CSH Severity: Medium
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-47870
CWE-ID: CWE-362
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to redirect user traffic to a malicious server.

The vulnerability exists due to a race condition in update_root_in_config when updating the root URL used by the frontend to communicate with the backend. A remote attacker can modify the root URL to redirect user traffic to a malicious server.

This may enable interception of sensitive data such as authentication credentials or uploaded files.


Affected software

Gradio

How to mitigate CVE-2024-47870

Install security update from vendor's website.

Gradio - update to 5.0.0

External References

Related Security Bulletins