5.3
Medium
CVE-2025-3262 A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers…
Description
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository, specifically in version 4.49.0. The vulnerability is due to inefficient regular expression complexity in the `SETTING_RE` variable within the `transformers/commands/chat.py` file. The regex contains repetition groups and non-optimized quantifiers, leading to exponential backtracking when processing 'almost matching' payloads. This can degrade application performance and potentially result in a denial-of-service (DoS) when handling specially crafted input strings. The issue is fixed in version 4.51.0.
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| huggingface/transformers 4.51 | earliest → < 4.51.0 | 4.51.0 |
Other CVEs of huggingface/transformers
The 20 CVEs of huggingface/transformers →
CVE-2026-9856
A vulnerability in huggingface/transformers…
7.1
High
CVE-2026-5241
A vulnerability in the LightGlue model loading path of huggingface/transformers version 5.2.0 allows an…
8.0
High
CVE-2026-4372
A critical remote code execution vulnerability exists in all versions of the HuggingFace transformers library prior to…
7.8
High
CVE-2026-1839
A vulnerability in the HuggingFace Transformers library, specifically in the `Trainer` class, allows for arbitrary…
6.5
Medium