# CVE-2024-1729: Timing Attack Vulnerability in gradio-app/gradio

- Severity: Medium 5.9 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A: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.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-22T22:09:22.000Z
- Modified: 2026-09-10T03:50:06.179Z
- Also known as: GHSA-hmx6-r76c-85g9, PYSEC-2026-1416
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## Description

A timing attack vulnerability exists in the gradio-app/gradio repository, specifically within the login function in routes.py. The vulnerability arises from the use of a direct comparison operation (`app.auth[username] == password`) to validate user credentials, which can be exploited to guess passwords based on response times. Successful exploitation of this vulnerability could allow an attacker to bypass authentication mechanisms and gain unauthorized access.

(As written by CVE List.)

## Affected

- gradio-app gradio-app/gradio: from unspecified before 4.19.2
- gradio_project gradio: up to 4.19.2; from 4.18.0 before 4.19.2
- gradio (PyPI): before 4.19.2

## Every score

- @huntr_ai: CVSS:3.0 5.9 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.0 5.9 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.0 5.9 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://huntr.com/bounties/f6a10a8d-f538-4cb7-9bb2-85d9f5708124> (exploit, third-party-advisory, web)
- <https://github.com/gradio-app/gradio/commit/e329f1fd38935213fe0e73962e8cbd5d3af6e87b> (fix, patch, web)
- <https://github.com/gradio-app/gradio/security/advisories/GHSA-hmx6-r76c-85g9> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-1729> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/gradio-app/gradio/releases/tag/gradio%404.19.2> (web)
- <https://pypi.org/project/gradio> (package)
- <https://github.com/advisories/GHSA-hmx6-r76c-85g9> (advisory)

## Sources

- CVE List: [CVE-2024-1729](https://www.cve.org/CVERecord?id=CVE-2024-1729), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-hmx6-r76c-85g9](https://github.com/advisories/GHSA-hmx6-r76c-85g9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-1729](https://nvd.nist.gov/vuln/detail/CVE-2024-1729), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1416](https://osv.dev/vulnerability/PYSEC-2026-1416), CC-BY-4.0, modified 2026-07-07

---

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