CVE-2024-47870: Race condition in update_root_in_config may redirect user traffic in Gradio
Impact What kind of vulnerability is it? Who is impacted?
This vulnerability involves a race condition in the updaterootinconfig 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.
Patches Yes, please upgrade to gradio>=5 to address this issue.
Other sources
Gradio is an open-source Python package designed for quick prototyping. This vulnerability involves a race condition in the updaterootinconfig 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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/gradioto a version that resolves this vulnerability.Fixed in 5.0.0 - Upgrade
Upgrade
gradioto a version that resolves this vulnerability.Fixed in 5
Event History
Frequently Asked Questions
What is the severity of CVE-2024-47870?
CVE-2024-47870 is classified as a high-severity vulnerability due to the risk of unauthorized modification of the root URL.
How do I fix CVE-2024-47870?
To mitigate CVE-2024-47870, upgrade Gradio to version 5.0.0 or later.
Who is impacted by CVE-2024-47870?
CVE-2024-47870 affects users of Gradio versions prior to 5.0.0.
What type of vulnerability is CVE-2024-47870?
CVE-2024-47870 is a race condition vulnerability in the update_root_in_config function.
What is the exploit vector for CVE-2024-47870?
The exploit for CVE-2024-47870 involves modifying the root URL used by the Gradio frontend to communicate with the backend.