CVE Tools

CVE-2025-1194

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

Published: Apr 29, 2025Updated: Aug 1, 2025 Sources: CVE List NVD GHSA BDUCWE-1333
6.5CVSSMEDIUM

Description

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

CVSS Vector Breakdown

AV:NAC:LPR:NUI:RS:UC:NI:NA:H
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:NPrivileges Required
None
UI:RUser Interaction
Required
Scope
S:UScope
Unchanged
Impact
C:NConfidentiality
None
I:NIntegrity
None
A:HAvailability
High

Weaknesses

Affected Products

huggingfacecommercialAI / MLaka transformers, huggingface/transformers, smolagents
pypipackage-ecosystemOSS Libraries
hugging face, inc.commercialAI / MLaka huggingface, transformers, smolagents

Attack Graph

Products CVE Techniques Tactics

Click technique nodes to view MITRE ATT&CK details. Scroll to zoom, drag to pan.

Exploitability

Official Patch Available

MITRE ATT&CK

1 technique
Impact
View detailed technique mapping

References

and 1 more references View all →

Timeline

Published
Apr 29, 2025
Last Updated
Aug 1, 2025

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2025-1194 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows