Vulnerability Description
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).
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Huggingface | Transformers | < 4.50.0 |
Related Weaknesses (CWE)
References
- https://github.com/huggingface/transformers/commit/92c5ca9dd70de3ade2af2eb835c96Patch
- https://huntr.com/bounties/86f58dcd-683f-4adc-a735-849f51e9abb2ExploitThird Party Advisory
- https://huntr.com/bounties/86f58dcd-683f-4adc-a735-849f51e9abb2ExploitThird Party Advisory
FAQ
What is CVE-2025-1194?
CVE-2025-1194 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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-Japane...
How severe is CVE-2025-1194?
CVE-2025-1194 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-1194?
Check the references section above for vendor advisories and patch information. Affected products include: Huggingface Transformers.