CVE-2024-47869: Non-constant-time comparison when comparing hashes in Gradio

Published Oct 10, 2024
·
Updated

Impact What kind of vulnerability is it? Who is impacted?

This vulnerability involves a timing attack in the way Gradio compares hashes for the analyticsdashboard function. Since the comparison is not done in constant time, an attacker could exploit this by measuring the response time of different requests to infer the correct hash byte-by-byte. This can lead to unauthorized access to the analytics dashboard, especially if the attacker can repeatedly query the system with different keys.

Patches Yes, please upgrade to gradio>4.44 to mitigate this issue.

Workarounds Is there a way for users to fix or remediate the vulnerability without upgrading?

To mitigate the risk before applying the patch, developers can manually patch the analyticsdashboard dashboard to use a constant-time comparison function for comparing sensitive values, such as hashes. Alternatively, access to the analytics dashboard can be disabled.

Other sources

Gradio is an open-source Python package designed for quick prototyping. This vulnerability involves a timing attack in the way Gradio compares hashes for the analyticsdashboard function. Since the comparison is not done in constant time, an attacker could exploit this by measuring the response time of different requests to infer the correct hash byte-by-byte. This can lead to unauthorized access to the analytics dashboard, especially if the attacker can repeatedly query the system with different keys. Users are advised to upgrade to gradio>4.44 to mitigate this issue. To mitigate the risk before applying the patch, developers can manually patch the analyticsdashboard dashboard to use a constant-time comparison function for comparing sensitive values, such as hashes. Alternatively, access to the analytics dashboard can be disabled.

— MITRE

Affected Software

2 affected componentsFixes available
pip/gradio<4.44.0
4.44.0
Gradio Project Gradio Python<4.44.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/gradio to a version that resolves this vulnerability.

    Fixed in 4.44.0
  2. Upgrade

    Upgrade gradio to a version that resolves this vulnerability.

    Fixed in >4.44
  3. Configuration

    Manually patch the analytics_dashboard function to use a constant-time comparison when comparing sensitive values such as hashes.

    Gradio analytics_dashboard hash comparison = constant-time comparison
  4. Configuration

    Disable access to the analytics dashboard as an alternative mitigation.

    Gradio analytics dashboard analytics_dashboard = disabled

Event History

Oct 10, 2024
Advisory Published
via GitHub·10:03 PM
CVE Published
via MITRE·10:16 PM
Data Sourced
via MITRE·10:16 PM
DescriptionWeakness
Data Sourced
via OSV·10:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-47869?

CVE-2024-47869 is classified as a high-severity vulnerability due to the potential for timing attacks.

2

How do I fix CVE-2024-47869?

To mitigate CVE-2024-47869, upgrade to Gradio version 4.44.0 or later.

3

Who is impacted by CVE-2024-47869?

CVE-2024-47869 affects users of Gradio versions prior to 4.44.0.

4

What type of vulnerability is CVE-2024-47869?

CVE-2024-47869 is a timing attack vulnerability related to hash comparison in the analytics_dashboard function.

5

Is CVE-2024-47869 exploitative in nature?

Yes, CVE-2024-47869 can be exploited by attackers to deduce information from timing differences in hash comparisons.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203