{"id":"CVE-2024-1729","aliases":["CVE-2024-1729","GHSA-hmx6-r76c-85g9","PYSEC-2026-1416"],"related":[],"kind":"vulnerability","state":"published","title":"Timing Attack Vulnerability in gradio-app/gradio","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThis security policy is with regards to a timing attack that allows users of Gradio apps to potentially guess the password of password-protected Gradio apps. This relies on the fact that string comparisons in Python terminate early, as soon as there is a string mismatch. Because Gradio apps are, by default, not rate-limited, a user could brute-force millions of guesses to figure out the correct username and password.\n\n### Patches\nYes, the problem has been patched in Gradio version 4.19.2 or higher. We have no knowledge of this exploit being used against users of Gradio applications, but we encourage all users to upgrade to Gradio 4.19.2 or higher.\n\nFixed in: https://github.com/gradio-app/gradio/commit/e329f1fd38935213fe0e73962e8cbd5d3af6e87b","format":"markdown","source":"ghsa"},{"lang":"es","text":"La condición de verificación de contraseña es vulnerable a ataques de tiempo para adivinar la contraseña.","source":"nvd"}],"published":"2024-02-22T22:09:22.000Z","modified":"2026-09-10T03:50:06.179Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-367"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"4.19.2","status":"affected"}],"vendor":"gradio-app","product":"gradio-app/gradio","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"4.19.2","status":"affected"}],"vendor":"gradio_project","product":"gradio","cpe":"cpe:2.3:a:gradio_project:gradio:-:*:*:*:*:python:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.19.2"}],"ecosystem":"PyPI","package":"gradio","purl":"pkg:pypi/gradio","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.18.0","fixed":"4.19.2"}],"vendor":"gradio_project","product":"gradio","cpe":"cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.19.2"}],"ecosystem":"PyPI","package":"gradio","purl":"pkg:pypi/gradio","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/f6a10a8d-f538-4cb7-9bb2-85d9f5708124","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/gradio-app/gradio/commit/e329f1fd38935213fe0e73962e8cbd5d3af6e87b","tags":["fix","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/gradio-app/gradio/security/advisories/GHSA-hmx6-r76c-85g9","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1729","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/gradio-app/gradio","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/gradio-app/gradio/releases/tag/gradio%404.19.2","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/gradio","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-hmx6-r76c-85g9","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-03-29T14:49:03.873Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-1729","url":"https://www.cve.org/CVERecord?id=CVE-2024-1729","licence":"CVE Terms of Use","modified":"2024-08-01T18:48:21.924Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hmx6-r76c-85g9","url":"https://github.com/advisories/GHSA-hmx6-r76c-85g9","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:06.179Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-1729","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1729","licence":"Public domain","modified":"2026-06-17T07:04:53.117Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1416","url":"https://osv.dev/vulnerability/PYSEC-2026-1416","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:40.256Z"}],"updatedAt":"2026-11-25T22:58:38.094Z","epss":{"score":0.00501,"percentile":0.44489,"date":"2026-12-01T12:00:22.000Z"}}