CVE-2025-6638

HIGH EPSS 38.0%
Published Sep 12, 20259mo ago · Modified Jun 17, 20261w ago
7.5 CVSS 3.1
High
Find Similar
Published Sep 12, 2025 9mo ago
Last Modified Jun 17, 2026 1w ago

Description

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically affecting the MarianTokenizer's `remove_language_code()` method. This vulnerability is present in version 4.52.4 and has been fixed in version 4.53.0. The issue arises from inefficient regex processing, which can be exploited by crafted input strings containing malformed language code patterns, leading to excessive CPU consumption and potential denial of service.

CVSS Details

Base Score
7.5
Exploitability
3.9
Impact
3.6
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High

Threat Intelligence

EPSS Exploit Probability
38.0% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-1333

Affected Products 1

VendorProductVersionRange
huggingfacetransformers4.52.4any

References 2

  • github.com https://github.com/huggingface/transformers/commit/47c34fba5c303576560cb29767efb452ff12b8be
    Patch
  • huntr.com https://huntr.com/bounties/6a6c933f-9ce8-4ded-8b3b-2c1444c61f36
    ExploitThird Party Advisory

Remediation

  • github.com https://github.com/huggingface/transformers/commit/47c34fba5c303576560cb29767efb452ff12b8be
    Patch