CVE-2025-6051

MEDIUM CVSS 3.0: 5.3 EPSS 0.38%
Updated Oct 01, 2026
Huggingface
Parameter Value
CVSS 5.3 (MEDIUM)
Fixed In 4.53.0
Type CWE-1333 (Inefficient Regular Expression Complexity / ReDoS)
Vendor Huggingface
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
Low
Partial disruption

CVSS Vector v3.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Huggingface Transformers
cpe:2.3:a:huggingface:transformers:4.52.4:*:*:*:*:*:*:*
— —