CVE-2025-1194 – transformers
Package
Manager: pip
Name: transformers
Vulnerable Version: >=0 <4.50.0
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS: 0.00148 pctl0.35863
Details
Transformers Regular Expression Denial of Service (ReDoS) vulnerability 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).
Metadata
Created: 2025-04-29T12:30:21Z
Modified: 2025-08-04T15:27:20Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-fpwr-67px-3qhx/GHSA-fpwr-67px-3qhx.json
CWE IDs: ["CWE-1333"]
Alternative ID: GHSA-fpwr-67px-3qhx
Finding: F211
Auto approve: 1