CVE-2025-1194CWE-1333

Regular Expression Denial of Service (ReDoS) in huggingface/transformers

Medium · published April 29, 2025

CVSS v3.0
4.3
EPSS
0%
Percentile
40.7
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.0
4.3 · MEDIUM
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.00484 · 40.7th percentile
Weakness
CWE-1333 · Inefficient Regular Expression Complexity
Published
2025-04-29T11:30Z
EPSS history
Timeline
  • 29 APR 11:30Z
    Regular Expression Denial of Service (ReDoS) in huggingface/transformers
    cvelistv5