Skip to content

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

HighCVSS 7.5 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
gradio-app/gradio <= latest after latest Fixed
pypi gradio(PyPI) = 4.38.0; = 4.38.1; = 4.39.0; = 4.40.0 +7 more after 5.0.0-beta.2 Fixed
gradio project gradio = 2024-09-18 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi gradio(PyPI) >= 4.38.0, <= 5.0.0-beta.2 No fix listed
pypi gradio(PyPI) = 4.38.0 No fix listed
pypi gradio(PyPI) = 4.38.1 No fix listed
pypi gradio(PyPI) = 4.39.0 No fix listed
pypi gradio(PyPI) = 4.40.0 No fix listed
pypi gradio(PyPI) = 4.41.0 No fix listed
pypi gradio(PyPI) = 4.42.0 No fix listed
pypi gradio(PyPI) = 4.43.0 No fix listed
pypi gradio(PyPI) = 4.44.0 No fix listed
pypi gradio(PyPI) = 4.44.1 No fix listed
pypi gradio(PyPI) = 5.0.0b1 No fix listed
gradio-app/gradio <= latest No fix listed
gradio project gradio = 2024-09-18 No fix listed

References