Non-constant-time comparison when comparing hashes in Gradio
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-203.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gradio-app | gradio | before 4.44 | 4.44 | Patch available | CNA |
| — | gradio (PyPI) | before 4.44.0 | 4.44.0 | Patch available | GHSA-j757-pf57-f8r4 |
- gradio Vendorgradio-app Affected before 4.44 Fixed in 4.44 Patch available CNA
- gradio (PyPI) Vendor— Affected before 4.44.0 Fixed in 4.44.0 Patch available GHSA-j757-pf57-f8r4
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* | before 4.44.0 | Vulnerable | gradio-app |
- cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* Versions before 4.44.0 Vulnerable ·gradio-app
Remediation
- Fix · CNA gradio (gradio-app) Fixed in 4.44
- Fix · GHSA-j757-pf57-f8r4 gradio (PyPI) Fixed in 4.44.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-47869
- 2026-10-03 Alias added: GHSA-j757-pf57-f8r4
References
More gradio-app Gradio vulnerabilities
- TI-2024-26222 Gradio v4.36.1 was discovered to contain a code injection vulnerability via the component… CVSS 3.1CRITICAL 9.8
- TI-2024-01607 Local File Inclusion in gradio-app/gradio CVSS 3.1HIGH 7.5
- TI-2024-00889 LFI in Gradio CVSS 3.1CRITICAL 9.4
- TI-2025-16852 Gradio Blocked Path ACL Bypass Vulnerability CVSS 4.0HIGH 8.7
- TI-2026-22690 Gradio has SSRF via Malicious `proxy_url` Injection in `gr.load()` Config Processing CVSS 3.1HIGH 8.6
- TI-2024-09866 Path Traversal in gradio-app/gradio CVSS 3.0HIGH 8.2
Sources
- CVE-2024-47869 · CVE Program
- CVE-2024-47869 · NVD
- FIRST EPSS
- GHSA-j757-pf57-f8r4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences