{"id":"CVE-2025-1194","aliases":["CVE-2025-1194","GHSA-fpwr-67px-3qhx","PYSEC-2026-1984"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS) in huggingface/transformers","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","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).","source":"cvelist"},{"lang":"es","text":"Se identificó una vulnerabilidad de denegación de servicio por expresión regular (ReDoS) en la librería huggingface/transformers, concretamente en el archivo `tokenization_gpt_neox_japanese.py` del modelo GPT-NeoX-Japanese. La vulnerabilidad se produce en la clase SubWordJapaneseTokenizer, donde las expresiones regulares procesan entradas especialmente manipuladas. El problema se debe a que una expresión regular presenta una complejidad exponencial en determinadas condiciones, lo que provoca un retroceso excesivo. Esto puede provocar un alto consumo de CPU y un posible tiempo de inactividad de la aplicación, creando así un escenario de denegación de servicio (DoS). La versión afectada es la v4.48.1 (última versión).","source":"nvd"}],"published":"2025-04-29T11:30:38.810Z","modified":"2026-08-13T20:11:58.399Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"4.50.0","status":"affected"}],"vendor":"huggingface","product":"huggingface/transformers","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.50.0"}],"ecosystem":"PyPI","package":"transformers","purl":"pkg:pypi/transformers","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.50.0"}],"vendor":"huggingface","product":"transformers","cpe":"cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.50.0"}],"ecosystem":"PyPI","package":"transformers","purl":"pkg:pypi/transformers","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/86f58dcd-683f-4adc-a735-849f51e9abb2","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/huggingface/transformers/commit/92c5ca9dd70de3ade2af2eb835c96215cc50e815","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1194","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/huggingface/transformers","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/transformers","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-fpwr-67px-3qhx","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-29T13:21:09.310Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-1194","url":"https://www.cve.org/CVERecord?id=CVE-2025-1194","licence":"CVE Terms of Use","modified":"2025-04-29T13:21:13.446Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fpwr-67px-3qhx","url":"https://github.com/advisories/GHSA-fpwr-67px-3qhx","licence":"CC-BY-4.0","modified":"2026-08-13T20:11:58.399Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-1194","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1194","licence":"Public domain","modified":"2026-06-17T08:38:34.587Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1984","url":"https://osv.dev/vulnerability/PYSEC-2026-1984","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:14.209Z"}],"updatedAt":"2026-11-25T22:58:57.072Z","epss":{"score":0.00502,"percentile":0.44554,"date":"2026-12-01T12:00:22.000Z"}}