Skip to main content
← All vulnerabilities
CVE-2025-6051PYSEC-2026-1988GHSA-RCV9-QM8P-9P6J

Regular Expression Denial of Service (ReDoS) in huggingface/transformers

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.53.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically within the `normalize_numbers()` method of the `EnglishNormalizer` class. This vulnerability affects versions up to 4.52.4 and is fixed in version 4.53.0. The issue arises from the method's handling of numeric strings, which can be exploited using crafted input strings containing long sequences of digits, leading to excessive CPU consumption. This vulnerability impacts text-to-speech and number normalization tasks, potentially causing service disruption, resource exhaustion, and API vulnerabilities.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • huggingface huggingface/transformers

    fixed in 4.53.0

  • transformersPyPI

    fixed in 4.53.0

References 2

huntr.com

GitHub · huggingface/transformers