CVE-2024-10624: Regular Expression Denial of Service (ReDoS) in gradio-app/gradio

Published Mar 20, 2025
·
Updated

A Regular Expression Denial of Service (ReDoS) vulnerability exists in the gradio-app/gradio repository, affecting the gr.Datetime component. The affected version is git commit 98cbcae. The vulnerability arises from the use of a regular expression ^(?:\snow\s(?:-\s(\d+)\s([dmhs]))?)?\s$ to process user input. In Python's default regex engine, this regular expression can take polynomial time to match certain crafted inputs. An attacker can exploit this by sending a crafted HTTP request, causing the gradio process to consume 100% CPU and potentially leading to a Denial of Service (DoS) condition on the server.

Affected Software

3 affected components
gradio gradio
pip/gradio>=4.38.0<=5.0.0-beta.2
Gradio Project Gradio Python=2024-09-18

Event History

Mar 20, 2025
CVE Published
via MITRE·10:10 AM
Data Sourced
via MITRE·10:10 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
Affected Software
Advisory Published
via GitHub·12:32 PM
Data Sourced
via GitHub·12:32 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-10624?

CVE-2024-10624 is classified as a Regular Expression Denial of Service (ReDoS) vulnerability.

2

How do I fix CVE-2024-10624?

To mitigate CVE-2024-10624, update your Gradio package to a version newer than 5.0.0-beta.2.

3

Which versions of Gradio are affected by CVE-2024-10624?

CVE-2024-10624 affects Gradio versions between 4.38.0 and 5.0.0-beta.2 inclusive.

4

What component is impacted by CVE-2024-10624?

CVE-2024-10624 impacts the gr.Datetime component within the Gradio application.

5

What type of attack does CVE-2024-10624 represent?

CVE-2024-10624 represents a Regular Expression Denial of Service (ReDoS) attack.

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