CVE-2024-10624: gradio-app/gradio · ReDoS
Affects gradio-app/gradioSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 07:57 UTC
- EPSS
- 1.0% chance of exploitation in 30 days – higher than 65% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
AI-suggested
To mitigate CVE-2024-10624, organizations should first identify and inventory all gradio deployments, focusing on versions prior to the fix. Input validation should be enhanced to reject suspicious or overly complex datetime strings before regex processing. Implementing rate limiting and request throttling on gradio endpoints can reduce the risk of DoS attacks by limiting the number of malicious requests an attacker can send. Deploying web application firewalls (WAFs) with custom rules to detect and block malicious input patterns can provide additional protection. Monitoring CPU usage and application logs for anomalies can help detect exploitation attempts early. Organizations should stay alert for official patches or updates from the gradio project and apply them promptly once available. Finally, isolating gradio services in containerized or sandboxed environments can limit the impact of potential DoS conditions on broader infrastructure.
Description
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 `^(?:\s*now\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.