Skip to content

Fix timing attacks to guess password of Gradio apps

Moderate
abidlabs published GHSA-hmx6-r76c-85g9 Feb 22, 2024

Package

pip gradio (pip)

Affected versions

< 4.19.2

Patched versions

4.19.2

Description

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: e329f1f
CVE: https://nvd.nist.gov/vuln/detail/CVE-2024-1729

Severity

Moderate

CVE ID

No known CVE

Weaknesses

No CWEs