{"id":"CVE-2024-47870","published":"2024-10-10T22:15:05Z","modified":"2024-10-11T15:17:49Z","title":"Race condition in update_root_in_config may redirect user traffic in Gradio","vendor":"gradio-app","product":"gradio","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00372,"percentile":0.3195,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://github.com/gradio-app/gradio/security/advisories/GHSA-xh2x-3mrm-fwqm","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.4,"factors":[{"name":"EPSS percentile","points":6.39},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"gradio-app","affectedVersions":[{"vendor":"gradio-app","product":"gradio","versions":["< 5.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-10-11T15:16:16.842847Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gradio","vulnerableRanges":["<5.0.0"],"patched":["5.0.0"],"from":["GHSA-xh2x-3mrm-fwqm","PYSEC-2024-218"],"provenance":"source"}],"summary":{"text":"A race condition in the update_root_in_config function of the Gradio Python package, an open-source tool for quick prototyping, allows the root URL used by the frontend to communicate with the backend to be altered. An attacker with network access and low-privilege authentication can exploit this without any user interaction to redirect user traffic to a malicious server, potentially intercepting sensitive data such as credentials or uploaded files.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:09Z"},"euvd":{"id":"EUVD-2024-0073","exploited":false,"provenance":"source"}}