CVE-2025-6638
HIGH EPSS 38.0%
Published Sep 12, 20259mo ago · Modified Jun 17, 20261w ago
7.5 CVSS 3.1
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
Exploitability
Impact
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
| Vendor | Product | Version | Range |
|---|---|---|---|
| huggingface | transformers | 4.52.4 | any |
References 2
- github.com https://github.com/huggingface/transformers/commit/47c34fba5c303576560cb29767efb452ff12b8be
- huntr.com https://huntr.com/bounties/6a6c933f-9ce8-4ded-8b3b-2c1444c61f36
Remediation
- github.com https://github.com/huggingface/transformers/commit/47c34fba5c303576560cb29767efb452ff12b8be