5.3medium
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
- Severity
- 5.3medium CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.40% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-rcv9-qm8p-9p6jPYSEC-2026-1988
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| huggingface huggingface/transformers | from unspecified before 4.53.0 | CVE List |
| transformers (PyPI) | before 4.53.0 | GitHub Advisory Database, PyPA Advisory Database |
| huggingface transformers | 4.52.4 | NVD |
All scores
| @huntr_ai | 5.3medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| PyPA Advisory Database | 5.3medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Se descubrió una vulnerabilidad de denegación de servicio por expresión regular (ReDoS) en la biblioteca Hugging Face Transformers, específicamente dentro del método 'normalize_numbers()' de la clase 'EnglishNormalizer'. Esta vulnerabilidad afecta a las versiones hasta la 4.52.4 y está corregida en la versión 4.53.0. El problema surge del manejo de cadenas numéricas por parte del método, que puede ser explotado utilizando cadenas de entrada manipuladas que contengan largas secuencias de dígitos, lo que lleva a un consumo excesivo de CPU. Esta vulnerabilidad impacta en las tareas de texto a voz y normalización de números, potencialmente causando interrupción del servicio, agotamiento de recursos y vulnerabilidades de API.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-6051 changed 2025-09-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rcv9-qm8p-9p6j changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-6051 changed 2026-09-30 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1988 changed 2026-07-07 | CC-BY-4.0 |