Skip to content
MediumVulnerability

CVE-2025-6051: Hugging Face Transformers ReDoS in EnglishNormalizer normalize_numbers method

Identifier
CVE-2025-6051
Published
Record updated
View JSON
Affected
  • transformers < 4.53.0
Fixed in
4.53.0
  • released June 26, 2025, 80 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

CVE-2025-6051 is a Regular Expression Denial of Service (ReDoS) flaw in the `normalize_numbers()` method of the `EnglishNormalizer` class in the Hugging Face Transformers library, affecting versions up to 4.52.4. Crafted input strings containing long sequences of digits cause excessive CPU consumption, which impacts text-to-speech and number normalization tasks and can lead to service disruption and resource exhaustion.

Mitigation

Fixed in 4.53.0.