Skip to content

Gradio apps vulnerable to timing attacks to guess password

Moderate severity GitHub Reviewed Published Feb 22, 2024 in gradio-app/gradio • Updated Apr 8, 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: gradio-app/gradio@e329f1f

References

@abidlabs abidlabs published to gradio-app/gradio Feb 22, 2024
Published to the GitHub Advisory Database Feb 22, 2024
Reviewed Feb 22, 2024
Published by the National Vulnerability Database Mar 29, 2024
Last updated Apr 8, 2024

Severity

Moderate
5.9
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Weaknesses

CVE ID

CVE-2024-1729

GHSA ID

GHSA-hmx6-r76c-85g9

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.