Vulnerability · Published Mar 29, 2024 · Assigned by @huntr_ai

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

Medium 5.9

In plain English

A medium-severity security flaw in gradio-app/gradio from gradio-app. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)5.9Medium
Exploit odds (30 days)0.5%top 56.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIgradio4.19.2GHSA-hmx6-r76c-85g9
PyPIgradio4.19.2PYSEC-2026-1416

Affected products (as reported)

VendorProductVersions
gradio-app gradio-app/gradio unspecified – before 4.19.2

Weakness: CWE-367 · Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

References