{"id":"CVE-2024-10624","published":"2025-03-20T10:10:43Z","modified":"2025-10-15T12:50:09Z","title":"Regular Expression Denial of Service (ReDoS) in gradio-app/gradio","vendor":"gradio-app","product":"gradio-app/gradio","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01637,"percentile":0.76727,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://huntr.com/bounties/e8d0b248-8feb-4c23-9ef9-be4d1e868374","tags":[]}],"priority":{"score":20.6,"factors":[{"name":"EPSS percentile","points":15.35},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"gradio-app","affectedVersions":[{"vendor":"gradio-app","product":"gradio-app/gradio","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-20T17:50:52.322069Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gradio","vulnerableRanges":[">=4.38.0, <=5.0.0-beta.2"],"patched":[],"from":["GHSA-rvgh-pr46-x7gg","PYSEC-2026-1421"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-7101","exploited":false,"provenance":"source"}}