{"id":"CVE-2025-1194","summary":"Regular Expression Denial of Service (ReDoS) in huggingface/transformers","details":"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).","aliases":["GHSA-fpwr-67px-3qhx","PYSEC-2026-1984"],"modified":"2026-08-13T20:11:57.529161780Z","published":"2025-04-29T11:30:38.810Z","database_specific":{"cwe_ids":["CWE-1333"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1194.json","cna_assigner":"@huntr_ai"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/86f58dcd-683f-4adc-a735-849f51e9abb2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1194.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1194"},{"type":"FIX","url":"https://github.com/huggingface/transformers/commit/92c5ca9dd70de3ade2af2eb835c96215cc50e815"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/huggingface/transformers","events":[{"introduced":"0"},{"fixed":"0b057e66b52556da3a1cbc29e2a98c0784ea9c33"},{"fixed":"92c5ca9dd70de3ade2af2eb835c96215cc50e815"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"4.50.0"}]}}],"versions":["v4.49.0-Mistral-3","v4.49.0-AyaVision","v4.49.0-SigLIP-2","v4.49.0-SmolVLM-2","v4.33.1","v4.16.0","v4.15.0","v4.14.0","v4.13.0","v4.12.0","v4.11.0","v4.10.0","v4.9.0","v4.8.0","v4.7.0","v4.6.0","v4.5.0","v4.4.0","v4.3.0.rc1","4.3.0.rc1","v4.2.0","v4.1.1","v4.1.0","v3.5.0","v3.4.0","v3.3.1","v3.3.0","v3.2.0","v3.1.0","v3.0.2","v3.0.1","3.0.1","v3.0.0","v2.11.0","v2.10.0","v2.9.1","v2.9.0","v2.8.0","v2.7.0","v2.6.0","v2.5.1","v2.5.0","v2.4.1","v2.4.0","v2.3.0","v2.2.2","v2.2.1","v2.2.0","v2.1.1","v2.1.0","v2.0.0","1.2.0","1.1.0","1.0","v0.6.2","v0.6.1","v0.6.0","v0.5.1","v0.5.0","0.5.0","v0.4.0","v0.3.0","v0.2.0","v0.1.2","0.1.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-1194.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"}]}