CVE-2024-10624 json
Regular Expression Denial of Service (ReDoS) in gradio-app/gradio
published 2025-03-20 19 mo ago modified 2026-07-07 4 mo ago also GHSA-rvgh-pr46-x7gg , PYSEC-2026-1421 , EUVD-2025-7101
- cvss
- 7.5
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 65%
- public exploits
- 0
- none known
Summary
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.
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
1.10% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/e8d0b248-8feb-4c23-9ef9-be4d1e868374 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | gradio | >=4.38.0, <=5.0.0-beta.2 |
no fix listed |
Affected products
- gradio-app gradio-app/gradio
Classification
References
-
huntr.com
/bounties/e8d0b248-8feb-4c23-9ef9-be4d1e868374
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-10624
advisory
-
github.com
/gradio-app/gradio
package
-
github.com
/gradio-app/gradio/blob/98cbcaef827de7267462ccba180c7b2ffb1e825d/gradio/components/datetime.py#L133-L136
web
-
pypi.org
/project/gradio
package
-
github.com
/advisories/GHSA-rvgh-pr46-x7gg
advisory
Sources
- CVE List CVE-2024-10624
- GitHub Advisory GHSA-rvgh-pr46-x7gg
- NVD CVE-2024-10624
- OSV PYSEC-2026-1421
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.