CVE-2025-1194 json
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
published 2025-04-29 18 mo ago modified 2026-08-13 2 mo ago also GHSA-fpwr-67px-3qhx , PYSEC-2026-1984 , EUVD-2025-15128
- cvss
- 4.3
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 42%
- public exploits
- 0
- none known
Summary
A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file `tokenization_gpt_neox_japanese.py` of the GPT-NeoX-Japanese model. The vulnerability occurs in the SubWordJapaneseTokenizer class, where regular expressions process specially crafted inputs. The issue stems from a regex exhibiting exponential complexity under certain conditions, leading to excessive backtracking. This can result in high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The affected version is v4.48.1 (latest).
Patch / fix
- pypi transformers 4.50.0
- huggingface huggingface/transformers 4.50.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.49% chance of exploitation in the next 30 days, higher than 42% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/86f58dcd-683f-4adc-a735-849f51e9abb2 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 4.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
| GitHub | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | transformers | <4.50.0 |
4.50.0 |
Affected products
- huggingface huggingface/transformers
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/huggingface/transformers/commit/92c5ca9dd70de3ade2af2eb835c96215cc50e815
web, patch
-
huntr.com
/bounties/86f58dcd-683f-4adc-a735-849f51e9abb2
exploit, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-1194
advisory
-
github.com
/huggingface/transformers
package
-
pypi.org
/project/transformers
package
-
github.com
/advisories/GHSA-fpwr-67px-3qhx
advisory
Sources
- CVE List CVE-2025-1194
- GitHub Advisory GHSA-fpwr-67px-3qhx
- NVD CVE-2025-1194
- OSV PYSEC-2026-1984
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.