CVE-2024-1729

Medium

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.

SeverityMedium
CVSS5.9
Exploit probability—
ProductGradio
PublishedMar 29, 2024
First seenMar 29, 2024
Weakness typeCWE-367CWE-367

How to fix

Update
  • gradio_project gradio4.19.2 or later
  • gradio4.19.2 or later

Affected products

ProductAffected versionsFixed in
gradio_project gradio4.18.0 ≤ v < 4.19.24.19.2
gradioPyPIv < 4.19.24.19.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.