SecurityContext

CVE-2024-10624: gradio-app/gradio - Regular Expression Denial of Service

  • Cve: CVE-2024-10624
  • Name: gradio-app/gradio - Regular Expression Denial of Service
  • 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.
  • Impact: Attackers can cause high CPU usage leading to denial of service on the server.
  • Remediation: Update to the latest version where the regex vulnerability is fixed or patch the regex to prevent polynomial-time matching.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.01099
  • Epss percentile: 0.66324
  • Assignee: [email protected]
  • Published at: 2025-03-20T10:15:17Z
  • Age in days: 614
  • Modified at: 2026-06-17T06:56:04Z
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-10624
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-1333Inefficient Regular Expression Complexity

Public exploits

UrlSourceAdded date
https://huntr.com/bounties/e8d0b248-8feb-4c23-9ef9-be4d1e868374nvd2025-03-20

References

UrlSourceTags
https://huntr.com/bounties/e8d0b248-8feb-4c23-9ef9-be4d1e868374nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
gradio_project:gradio= 2024-09-18nonvd/v1/products/gradio_project/gradio

Projects

RepositoryLink kindsIndexedUrl
gradio-app/gradiopackageyes/v1/repositories/gradio-app/gradio

Index

  • Repositories: 199
  • Repositories high signal: 114
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-03-20
  • Remote: yes
  • Exposed hosts: 2932
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports