{"id":"CVE-2025-1194","published":"2025-04-29T11:30:38Z","modified":"2025-04-29T13:21:13Z","title":"Regular Expression Denial of Service (ReDoS) in huggingface/transformers","vendor":"huggingface","product":"huggingface/transformers","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00502,"percentile":0.43831,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://huntr.com/bounties/86f58dcd-683f-4adc-a735-849f51e9abb2","tags":[]},{"url":"https://github.com/huggingface/transformers/commit/92c5ca9dd70de3ade2af2eb835c96215cc50e815","tags":[]}],"priority":{"score":11.8,"factors":[{"name":"EPSS percentile","points":8.77},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"huggingface","affectedVersions":[{"vendor":"huggingface","product":"huggingface/transformers","versions":[">= unspecified, < 4.50.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-29T13:21:09.310802Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"transformers","vulnerableRanges":["<4.50.0"],"patched":["4.50.0"],"from":["GHSA-fpwr-67px-3qhx","PYSEC-2026-1984"],"provenance":"source"}],"summary":{"text":"A Regular Expression Denial of Service (ReDoS) flaw exists in the SubWordJapaneseTokenizer class of the tokenization_gpt_neox_japanese.py file, part of the GPT-NeoX-Japanese model in the huggingface/transformers library. An attacker who can get a specially crafted input processed by that tokenizer can trigger exponential regex backtracking, causing high CPU usage and potential application downtime, and the attack requires a user to interact with the affected component.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:19Z"},"euvd":{"id":"EUVD-2025-15128","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-huggingface-transformers-cve-2024-12720","parents":[{"from":"CVE-2024-12720","to":"CVE-2025-1194","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/transformers/models/nougat/tokenization_nougat_fast.py"],"commits":["https://github.com/huggingface/transformers/commit/deac971c469bcbb182c2e52da0b82fb3bf54cccf","https://github.com/huggingface/transformers/commit/92c5ca9dd70de3ade2af2eb835c96215cc50e815"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.59,"basis":"same product + CWE + description similarity"}]}]}}