{"id":"CVE-2024-47869","published":"2024-10-10T22:16:11Z","modified":"2024-10-11T15:08:48Z","title":"Non-constant-time comparison when comparing hashes 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 **timing attack** in the way Gradio compares hashes for the `analytics_dashboard` function. Since the comparison is not done in constant time, an attacker could exploit this by measuring the response time of different requests to infer the correct hash byte-by-byte. This can lead to unauthorized access to the analytics dashboard, especially if the attacker can repeatedly query the system with different keys. Users are advised to upgrade to `gradio>4.44` to mitigate this issue. To mitigate the risk before applying the patch, developers can manually patch the `analytics_dashboard` dashboard to use a **constant-time comparison** function for comparing sensitive values, such as hashes. Alternatively, access to the analytics dashboard can be disabled.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00295,"percentile":0.22628,"provenance":"source"},"cwes":[{"id":"CWE-203","name":"Observable Discrepancy"}],"references":[{"url":"https://github.com/gradio-app/gradio/security/advisories/GHSA-j757-pf57-f8r4","tags":["x_refsource_CONFIRM"]}],"priority":{"score":6.1,"factors":[{"name":"EPSS percentile","points":4.53},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"gradio-app","affectedVersions":[{"vendor":"gradio-app","product":"gradio","versions":["< 4.44"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-11T15:08:36.459737Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gradio","vulnerableRanges":["<4.44.0"],"patched":["4.44.0"],"from":["GHSA-j757-pf57-f8r4","PYSEC-2024-199"],"provenance":"source"}],"summary":{"text":"The Gradio Python package (gradio-app/gradio) contains a non-constant-time hash comparison in its analytics_dashboard function, which leaks timing information during the check. An attacker with network access and low-privilege authentication can repeatedly send crafted requests and measure response times to recover the correct hash byte by byte, gaining unauthorized access to the analytics dashboard.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:06Z"},"euvd":{"id":"EUVD-2024-0067","exploited":false,"provenance":"source"}}