PT-2025-12141 · Hugging Face · Huggingface/Transformers

Published

2025-03-20

·

Updated

2025-08-01

·

CVE-2024-12720

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions huggingface/transformers version v4.46.3
Description A Regular Expression Denial of Service (ReDoS) issue was identified in the huggingface/transformers library, specifically in the file tokenization nougat fast.py. The issue occurs in the post process single() function, where a regular expression processes specially crafted input, leading to excessive backtracking and significantly high CPU usage. This can result in potential application downtime, creating a Denial of Service (DoS) scenario.
Recommendations For version v4.46.3, consider disabling the post process single() function until a patch is available to prevent potential Denial of Service (DoS) scenarios. Restrict access to the tokenization nougat fast.py file to minimize the risk of exploitation. Avoid using the affected library until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

DoS

Weakness Enumeration

Related Identifiers

CVE-2024-12720
GHSA-6RVG-6V2M-4J46

Affected Products

Huggingface/Transformers