# CVE-2025-6051: Regular Expression Denial of Service (ReDoS) in huggingface/transformers

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-14T17:03:02.953Z
- Modified: 2026-09-30T23:10:00.237Z
- Also known as: GHSA-rcv9-qm8p-9p6j, PYSEC-2026-1988
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- huggingface huggingface/transformers: from unspecified before 4.53.0
- transformers (PyPI): before 4.53.0
- huggingface transformers: 4.52.4

## Every score

- @huntr_ai: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://huntr.com/bounties/af929523-7b59-418a-bf55-301830b2ac9d> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/huggingface/transformers/commit/ba8eaba9865618253f997784aa565b96206426f0> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6051> (advisory)
- <https://github.com/huggingface/transformers/pull/38844> (web)
- <https://github.com/huggingface/transformers/commit/54a02160eb030da9be18231c77791f2eb3a52216> (web)
- <https://github.com/huggingface/transformers> (package)
- <https://pypi.org/project/transformers> (package)
- <https://github.com/advisories/GHSA-rcv9-qm8p-9p6j> (advisory)

## Sources

- CVE List: [CVE-2025-6051](https://www.cve.org/CVERecord?id=CVE-2025-6051), CVE Terms of Use, modified 2025-09-15
- GitHub Advisory Database: [GHSA-rcv9-qm8p-9p6j](https://github.com/advisories/GHSA-rcv9-qm8p-9p6j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-6051](https://nvd.nist.gov/vuln/detail/CVE-2025-6051), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-1988](https://osv.dev/vulnerability/PYSEC-2026-1988), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-6051 · Whole record: https://cve.day/CVE-2025-6051.json · Rebuilt by cve.day 2026-11-25T22:59:04.628Z
