5.3

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

Analyzed
AliasesGHSA-rcv9-qm8p-9p6jPYSEC-2026-1988CGA-388w-58gr-p657
Published 14-09-2025Last modified 15-09-2025

Vulnerability summary

CVE-2025-6051 is a medium (CVSS 5.3) vulnerability in huggingface huggingface/transformers. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 32.2% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.3/10
010
Medium · v3.0 (CVE.org)
EPSS score
0.38%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 0 · Related 2

Timeline

  1. 14-09-2025
    PublishedVulnerability first disclosed.
  2. 15-09-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.38%

Chance of exploitation in the next 30 days

Percentile

32%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.38% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard6 products
  • py3.10-transformers-4.51All versions (No fix recorded)
  • py3.11-transformers-4.51All versions (No fix recorded)
  • py3.12-transformers-4.51All versions (No fix recorded)
  • py3.13-transformers-4.51All versions (No fix recorded)
  • text-generation-inference< 3.3.7-r9 | < 3.3.7-r8
Huggingface2 products
PyPI1 product
  • transformers< 4.53.0

3 vendors · 9 products

References

9 links