---
id: CVE-2024-1729
aliases:
  - GHSA-hmx6-r76c-85g9
  - PYSEC-2026-1416
title: Gradio apps vulnerable to timing attacks to guess password
summary: Gradio apps vulnerable to timing attacks to guess password
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'
vendor: gradio
product: gradio
ecosystem: pip
affected:
  - gradio < 4.19.2
patched:
  - gradio 4.19.2
published: '2024-02-22'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:06.179675521Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-hmx6-r76c-85g9'
references:
  - url: >-
      https://github.com/gradio-app/gradio/security/advisories/GHSA-hmx6-r76c-85g9
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-1729'
  - url: >-
      https://github.com/gradio-app/gradio/commit/e329f1fd38935213fe0e73962e8cbd5d3af6e87b
  - url: 'https://github.com/gradio-app/gradio'
  - url: 'https://github.com/gradio-app/gradio/releases/tag/gradio%404.19.2'
  - url: 'https://huntr.com/bounties/f6a10a8d-f538-4cb7-9bb2-85d9f5708124'
tags:
  - osv
  - pip
epss: 0.00501
epssPercentile: 0.40255
ingestedAt: '2026-07-08T18:25:50.288Z'
---

## Overview

### Impact
This 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.

### Patches
Yes, 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.

Fixed in: https://github.com/gradio-app/gradio/commit/e329f1fd38935213fe0e73962e8cbd5d3af6e87b

## Affected packages

- `gradio < 4.19.2`

## Remediation

Upgrade to a patched release:

- `gradio 4.19.2`
