CVE-2025-3262 Details
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.
A Regular Expression Denial-of-Service (ReDoS) vulnerability exists in Hugging Face Transformers version 4.49.0. The issue arises from inefficient regular expression complexity in the 'SETTING_RE' variable within 'transformers/commands/chat.py'. The regex's repetition groups and non-optimized quantifiers cause exponential backtracking when processing 'almost matching' payloads, which can degrade application performance and potentially lead to a denial-of-service condition with specially crafted input strings.
Users can upgrade to Hugging Face Transformers version 4.51.0 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://huntr.com/bounties/ecf5ccc4-39e7-4fb3-b547-14a41d31a184 | CISA-ADP | ExploitThird Party Advisory |
| https://github.com/huggingface/transformers/commit/0720e206c6ba28887e4d60ef60a6a089f6c1cc76 | [email protected] | Patch |
| https://huntr.com/bounties/ecf5ccc4-39e7-4fb3-b547-14a41d31a184 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| huggingface transformers | < 4.51.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 2, 2025 | Initial Analysis | [email protected] |
| Jul 7, 2025 | CVE Modified | CISA-ADP |
| Jul 7, 2025 | New CVE Received | [email protected] |