CVE-2024-12720
HIGH EPSS 47.9%
Published Mar 20, 20251y ago · Modified Jun 17, 20261w ago
7.5 CVSS 3.1
Published Mar 20, 2025 1y ago
Last Modified Jun 17, 2026 1w ago
Description
A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file tokenization_nougat_fast.py. The vulnerability occurs in the post_process_single() function, where a regular expression processes specially crafted input. The issue stems from the regex exhibiting exponential time complexity under certain conditions, leading to excessive backtracking. This can result in significantly high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The affected version is v4.46.3 (latest).
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
47.9% percentile
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 1
CWE-1333
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| huggingface | transformers | * | <4.48.0 |
References 2
- github.com https://github.com/huggingface/transformers/commit/deac971c469bcbb182c2e52da0b82fb3bf54cccf
- huntr.com https://huntr.com/bounties/4bed1214-7835-4252-a853-22bbad891f98
Remediation
- github.com https://github.com/huggingface/transformers/commit/deac971c469bcbb182c2e52da0b82fb3bf54cccf