CVE-2025-3263Huggingface Transformers
Medium 5.3 No auth needed
Follow: this CVE · Huggingface · Huggingface Transformers We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.0
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Jul 7, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
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.
What to do
- Apply the vendor's security update for Transformers.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | transformers |
< 4.51.0 |
4.51.0 |
pip install "transformers>=4.51.0" |
| PyPI | transformers |
< 4.51.0 |
4.51.0 |
pip install "transformers>=4.51.0" |
Per OSV / GitHub Advisories (GHSA-q2wp-rjmx-x6x9, PYSEC-2026-1987). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| huggingface | transformers | ≥ 4.49.0 < 4.51.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit Third Party Advisory