# CVE-2024-47869: Non-constant-time comparison when comparing hashes in Gradio

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 37% of CVEs (2026-11-30)
- Published: 2024-10-10T22:03:29.000Z
- Modified: 2026-06-17T07:57:53.230Z
- Also known as: GHSA-j757-pf57-f8r4, PYSEC-2024-199
- Weaknesses: CWE-203, CWE-208
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- gradio-app gradio: < 4.44
- gradio (PyPI): before 4.44.0
- gradio_project gradio: before 4.44.0

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `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`
- GitHub: CVSS:3.1 3.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/gradio-app/gradio/security/advisories/GHSA-j757-pf57-f8r4> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47869> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-199.yaml> (web)

## Sources

- CVE List: [CVE-2024-47869](https://www.cve.org/CVERecord?id=CVE-2024-47869), CVE Terms of Use, modified 2024-10-11
- GitHub Advisory Database: [GHSA-j757-pf57-f8r4](https://github.com/advisories/GHSA-j757-pf57-f8r4), CC-BY-4.0, modified 2025-01-21
- NVD: [CVE-2024-47869](https://nvd.nist.gov/vuln/detail/CVE-2024-47869), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-199](https://osv.dev/vulnerability/PYSEC-2024-199), CC-BY-4.0, modified 2025-01-19

---

Page: https://cve.day/CVE-2024-47869 · Whole record: https://cve.day/CVE-2024-47869.json · Rebuilt by cve.day 2026-11-25T22:58:46.640Z
