CVE-2025-3263
published medium CVSS 3.0 · 5.3Regular Expression Denial of Service (ReDoS) in huggingface/transformers
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| huggingface | — | huggingface/transformersunspecified to < 4.51.0 | Affected | Not stated | @huntr_ai |
Description
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically in the `get_configuration_file()` function within the `transformers.configuration_utils` module. The affected version is 4.49.0, and the issue is resolved in version 4.51.0. The vulnerability arises from the use of a regular expression pattern `config\.(.*)\.json` that can be exploited to cause excessive CPU consumption through crafted input strings, leading to catastrophic backtracking. This can result in model serving disruption, resource exhaustion, and increased latency in applications using the library.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| huggingface | huggingface/transformers | unspecified to < 4.51.0 (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-1333 CWE-1333 Inefficient Regular Expression Complexity
References
2Provider assertions
2@huntr_ai · cna
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- eb85e759be83cb61818517dd934dfd70b50025ec89e62498169a353e655ac9bb
- Ingested
- 23 Sep 2026, 08:47:25 UTC
- Source record
- Official CVE record