CVE-2025-1194
MEDIUM 6.5CVSS 3.1Transformers Regular Expression Denial of Service (ReDoS) vulnerability
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).
- Published
- 29 Apr 2025
- Last modified
- 13 Aug 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-1333
- Also known as
- GHSA-fpwr-67px-3qhxPYSEC-2026-1984
- Sources
- NVDJSONOSV GHSA-fpwr-67px-3qhxJSONOSV PYSEC-2026-1984JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
| OSV | PyPA | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 4.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | huggingface | transformerscpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:* |
< 4.50.0 | 4.50.0 |
| OSV | PyPI | transformers | < 4.50.0 | 4.50.0 |
References
- https://github.com/huggingface/transformers/commit/92c5ca9dd70de3ade2af2eb835c96215cc50e815 · Patch, WEB
- https://huntr.com/bounties/86f58dcd-683f-4adc-a735-849f51e9abb2 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-1194 · ADVISORY
- https://github.com/huggingface/transformers · PACKAGE
- https://pypi.org/project/transformers · PACKAGE
- https://github.com/advisories/GHSA-fpwr-67px-3qhx · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 29 Apr 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Apr 2025)