Last seen March 20, 2025

AI Security Vulnerability

A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file tokenization_nougat_fast.py. The vulnerability occurs in the post_process_single() function, where a regular expression processes specially crafted input. The issue stems from the regex exhibiting exponential time complexity under certain conditions, leading to excessive backtracking. This can result in significantly high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The affected version is v4.46.3.

Technical Severity
Low severity
Lifecycle Status

STABLE

What Happened

A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file tokenization_nougat_fast.py. The vulnerability occurs in the post_process_single() function, where a regular expression processes specially crafted input. The issue stems from the regex exhibiting exponential time complexity under certain conditions, leading to excessive backtracking. This can result in significantly high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The affected version is v4.46.3.

Why This Matters

Current evidence identifies a security issue involving Denial, but does not yet support a more specific impact claim.

Recommended Action

No confirmed vendor remediation is available in the current evidence. Identify deployments of Denial matching the evidenced affected versions: 4.46.3.

Exposure

My Interests Exposure

Exposure unknown

Recommended Response
Last Seen

Mar 20, 2025 18:02

Exposure reason: This incident does not currently match a technology in My Interests.

Exploitation status: UNKNOWN

Affected versions: 4.46.3

Primary entities:

vulnerabilityDenialReDoSServicehuggingface/transformers

Timeline

  • Incident first seen
    Mar 20, 2025 18:02

    BugSkan first recorded this incident.

  • Transformers Regular Expression Denial of Service (ReDoS) vulnerability
    Mar 20, 2025 18:02

    OSV.dev · Research

Sources

Transformers Regular Expression Denial of Service (ReDoS) vulnerability

OSV.dev · Mar 20, 2025 18:02

A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file tokenization_nougat_fast.py. The vulnerability occurs in the post_process_single() function, where a regular expression processes specially crafted input. The issue stems from the regex exhibiting exponential time complexity under certain conditions, leading to excessive backtracking. This can result in significantly high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The affected version is v4.46.3.

Open publisher source

My Interests Match

Want personalized relevance?

Create an account to see which incidents overlap with your interests.

← Back to incident intelligence