{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-10624","id":"CVE-2024-10624","title":"Regular Expression Denial of Service (ReDoS) in gradio-app/gradio","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","descriptionLong":"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.","published":"2025-03-20T10:10:43.329Z","updated":"2026-06-17T06:56:04.430Z","reserved":"2024-10-31T16:30:57.959Z","status":"Modified","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"@huntr_ai"},"metrics":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"@huntr_ai"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"huntr.dev"}],"rating":"high","products":["gradio-app/gradio"],"affectedProducts":[{"vendor":"gradio-app","product":"gradio-app/gradio","defaultStatus":null,"versions":[{"version":"unspecified","status":"affected","versionType":"custom","lessThanOrEqual":"latest"}],"platforms":[]}],"packages":[],"cwes":["CWE-1333"],"aliases":[],"references":[{"url":"https://huntr.com/bounties/e8d0b248-8feb-4c23-9ef9-be4d1e868374","tags":["Exploit","Third Party Advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.01099,"epssPercentile":0.66306,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-10624","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-10624","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-10624","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-10624","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}