
CVE catalog
CVE-2025-6051
Hugging Face Transformers library has Regular Expression Denial of Service
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.38% · Oct 25, 2026
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library’s EnglishNormalizer.normalize_numbers method of the CLVP model. Maliciously crafted long numeric strings cause excessive CPU usage due to inefficient regex processing, leading to potential service disruption. transformers: Regular Expression Denial of Service (ReDoS) in huggingface/transformers This ReDoS vulnerability is classified as a Moderate issue because, while it does not compromise confidentiality or integrity, it can significantly impact the availability of services using the affected component. Attackers can exploit this flaw by sending specially crafted long numeric inputs that cause excessive CPU consumption, potentially slowing down or crashing text processing pipelines, such as text-to-speech systems. Although it requires no special privileges or user interaction, the impact is limited to resource exhaustion rather than data theft or system takeover. The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| PyPI | transformers | Not reported | 4.53.0 | fixed |
| PyPI | transformers | Not reported | 4.53.0 | fixed |
| Cpe | transformers | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| PyPI | transformers | PyPI | Not reported | 4.53.0 | Not reported | GHSA-RCV9-QM8P-9P6J | Not reported |
| PyPI | transformers | PyPI | Not reported | 4.53.0 | Not reported | PYSEC-2026-1988 | Not reported |
OpenFactory catalog packages
No matching packages in this catalog.
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2025-6051]
- [https://osv.dev/vulnerability/GHSA-rcv9-qm8p-9p6j]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-6051.json]
[FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]