# CVE-2025-1194: Regular Expression Denial of Service (ReDoS) in huggingface/transformers

- Severity: Medium 4.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-29T11:30:38.810Z
- Modified: 2026-08-13T20:11:58.399Z
- Also known as: GHSA-fpwr-67px-3qhx, PYSEC-2026-1984
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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).

(As written by CVE List.)

## Affected

- huggingface huggingface/transformers: from unspecified before 4.50.0
- transformers (PyPI): before 4.50.0
- huggingface transformers: before 4.50.0

## Every score

- @huntr_ai: CVSS:3.0 4.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`

## References

- <https://huntr.com/bounties/86f58dcd-683f-4adc-a735-849f51e9abb2> (exploit, third-party-advisory, web)
- <https://github.com/huggingface/transformers/commit/92c5ca9dd70de3ade2af2eb835c96215cc50e815> (patch, 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)

## Sources

- CVE List: [CVE-2025-1194](https://www.cve.org/CVERecord?id=CVE-2025-1194), CVE Terms of Use, modified 2025-04-29
- GitHub Advisory Database: [GHSA-fpwr-67px-3qhx](https://github.com/advisories/GHSA-fpwr-67px-3qhx), CC-BY-4.0, modified 2026-08-13
- NVD: [CVE-2025-1194](https://nvd.nist.gov/vuln/detail/CVE-2025-1194), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1984](https://osv.dev/vulnerability/PYSEC-2026-1984), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-1194 · Whole record: https://cve.day/CVE-2025-1194.json · Rebuilt by cve.day 2026-11-25T22:58:57.072Z
