PT-2025-12049 · Gradio · Gradio
Published
2025-03-20
·
Updated
2025-03-20
·
CVE-2024-10624
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
gradio versions prior to the version that fixes the issue in git commit 98cbcae
Description
A Regular Expression Denial of Service (ReDoS) issue exists in the gr.Datetime component, arising from the use of a regular expression
^(?:s*nows*(?:-s*(d+)s*([dmhs]))?)?s*$ to process user input. This can cause the gradio process to consume 100% CPU and potentially lead to a Denial of Service (DoS) condition on the server when an attacker sends a crafted HTTP request.Recommendations
For versions prior to the fix, consider disabling the
gr.Datetime component until a patch is available to prevent potential exploitation.
Restrict access to the vulnerable gr.Datetime component to minimize the risk of exploitation.
Avoid using the regular expression ^(?:s*nows*(?:-s*(d+)s*([dmhs]))?)?s*$ in the gr.Datetime component until the issue is resolved.Exploit
Fix
DoS
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Gradio