CVE-2025-1194
NixOS vulnerability analysis and mitigation

Overview

A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library (CVE-2025-1194), specifically in the file tokenization_gpt_neox_japanese.py of the GPT-NeoX-Japanese model. The vulnerability was discovered on April 29, 2025, affecting version v4.48.1. The issue occurs in the SubWordJapaneseTokenizer class, where regular expressions process specially crafted inputs (NVD).

Technical details

The vulnerability stems from a regex pattern exhibiting exponential complexity under certain conditions, leading to excessive backtracking. The issue is present in the content_repatter6 regex implementation within the SubWordJapaneseTokenizer class. The vulnerability has been assigned a CVSS v3.0 score of 4.3 (MEDIUM) with the vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L. The weakness has been categorized as CWE-1333 (Inefficient Regular Expression Complexity) (NVD, HF Commit).

Impact

When exploited, this vulnerability can result in high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The impact is particularly significant when processing specially crafted inputs that trigger the exponential backtracking behavior in the regex pattern (NVD).

Mitigation and workarounds

A fix has been implemented in the HuggingFace transformers repository through commit 92c5ca9. The solution involves using possessive quantifiers for Python versions >= 3.11 and a simplified regex pattern for earlier versions, both designed to prevent catastrophic backtracking while maintaining the same functionality (HF Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22783HIGH8.1
  • NixOSNixOS
  • iris
NoYesJan 12, 2026
CVE-2026-0821MEDIUM6.9
  • NixOSNixOS
  • quickjs
NoNoJan 10, 2026
CVE-2025-68949MEDIUM5.3
  • NixOSNixOS
  • n8n
NoYesJan 13, 2026
CVE-2026-22784LOW2.3
  • NixOSNixOS
  • lychee
NoYesJan 12, 2026
CVE-2026-23497LOW1.3
  • NixOSNixOS
  • learning
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management