Skip to content

CVE-2024-12720 Regular Expression Denial of Service (ReDoS) in huggingface/transformers

HighCVSS 7.5 EPSS 0.75%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

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

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
huggingface transformers < 4.48.0 4.48.0 Fixed
huggingface/transformers < 4.48.0 4.48.0 Fixed
pypi transformers(PyPI) < 4.48.0; = 0.1; = 2.0.0; = 2.1.0 +163 more 4.48.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi transformers(PyPI) < 4.48.0 4.48.0
pypi transformers(PyPI) = 0.1 No fix listed
pypi transformers(PyPI) = 2.0.0 No fix listed
pypi transformers(PyPI) = 2.1.0 No fix listed
pypi transformers(PyPI) = 2.1.1 No fix listed
pypi transformers(PyPI) = 2.10.0 No fix listed
pypi transformers(PyPI) = 2.11.0 No fix listed
pypi transformers(PyPI) = 2.2.0 No fix listed
pypi transformers(PyPI) = 2.2.1 No fix listed
pypi transformers(PyPI) = 2.2.2 No fix listed
pypi transformers(PyPI) = 2.3.0 No fix listed
pypi transformers(PyPI) = 2.4.0 No fix listed
pypi transformers(PyPI) = 2.4.1 No fix listed
pypi transformers(PyPI) = 2.5.0 No fix listed
pypi transformers(PyPI) = 2.5.1 No fix listed
pypi transformers(PyPI) = 2.6.0 No fix listed
pypi transformers(PyPI) = 2.7.0 No fix listed
pypi transformers(PyPI) = 2.8.0 No fix listed
pypi transformers(PyPI) = 2.9.0 No fix listed
pypi transformers(PyPI) = 2.9.1 No fix listed
pypi transformers(PyPI) = 3.0.0 No fix listed
pypi transformers(PyPI) = 3.0.1 No fix listed
pypi transformers(PyPI) = 3.0.2 No fix listed
pypi transformers(PyPI) = 3.1.0 No fix listed
pypi transformers(PyPI) = 3.2.0 No fix listed
Show 144 more
ProductAffected versionsFixed in
pypi transformers(PyPI) = 3.3.0 No fix listed
pypi transformers(PyPI) = 3.3.1 No fix listed
pypi transformers(PyPI) = 3.4.0 No fix listed
pypi transformers(PyPI) = 3.5.0 No fix listed
pypi transformers(PyPI) = 3.5.1 No fix listed
pypi transformers(PyPI) = 4.0.0 No fix listed
pypi transformers(PyPI) = 4.0.0rc1 No fix listed
pypi transformers(PyPI) = 4.0.1 No fix listed
pypi transformers(PyPI) = 4.1.0 No fix listed
pypi transformers(PyPI) = 4.1.1 No fix listed
pypi transformers(PyPI) = 4.10.0 No fix listed
pypi transformers(PyPI) = 4.10.1 No fix listed
pypi transformers(PyPI) = 4.10.2 No fix listed
pypi transformers(PyPI) = 4.10.3 No fix listed
pypi transformers(PyPI) = 4.11.0 No fix listed
pypi transformers(PyPI) = 4.11.1 No fix listed
pypi transformers(PyPI) = 4.11.2 No fix listed
pypi transformers(PyPI) = 4.11.3 No fix listed
pypi transformers(PyPI) = 4.12.0 No fix listed
pypi transformers(PyPI) = 4.12.1 No fix listed
pypi transformers(PyPI) = 4.12.2 No fix listed
pypi transformers(PyPI) = 4.12.3 No fix listed
pypi transformers(PyPI) = 4.12.4 No fix listed
pypi transformers(PyPI) = 4.12.5 No fix listed
pypi transformers(PyPI) = 4.13.0 No fix listed
pypi transformers(PyPI) = 4.14.0 No fix listed
pypi transformers(PyPI) = 4.14.1 No fix listed
pypi transformers(PyPI) = 4.15.0 No fix listed
pypi transformers(PyPI) = 4.16.0 No fix listed
pypi transformers(PyPI) = 4.16.1 No fix listed
pypi transformers(PyPI) = 4.16.2 No fix listed
pypi transformers(PyPI) = 4.17.0 No fix listed
pypi transformers(PyPI) = 4.18.0 No fix listed
pypi transformers(PyPI) = 4.19.0 No fix listed
pypi transformers(PyPI) = 4.19.1 No fix listed
pypi transformers(PyPI) = 4.19.2 No fix listed
pypi transformers(PyPI) = 4.19.3 No fix listed
pypi transformers(PyPI) = 4.19.4 No fix listed
pypi transformers(PyPI) = 4.2.0 No fix listed
pypi transformers(PyPI) = 4.2.1 No fix listed
pypi transformers(PyPI) = 4.2.2 No fix listed
pypi transformers(PyPI) = 4.20.0 No fix listed
pypi transformers(PyPI) = 4.20.1 No fix listed
pypi transformers(PyPI) = 4.21.0 No fix listed
pypi transformers(PyPI) = 4.21.1 No fix listed
pypi transformers(PyPI) = 4.21.2 No fix listed
pypi transformers(PyPI) = 4.21.3 No fix listed
pypi transformers(PyPI) = 4.22.0 No fix listed
pypi transformers(PyPI) = 4.22.1 No fix listed
pypi transformers(PyPI) = 4.22.2 No fix listed
pypi transformers(PyPI) = 4.23.0 No fix listed
pypi transformers(PyPI) = 4.23.1 No fix listed
pypi transformers(PyPI) = 4.24.0 No fix listed
pypi transformers(PyPI) = 4.25.0 No fix listed
pypi transformers(PyPI) = 4.25.1 No fix listed
pypi transformers(PyPI) = 4.26.0 No fix listed
pypi transformers(PyPI) = 4.26.1 No fix listed
pypi transformers(PyPI) = 4.27.0 No fix listed
pypi transformers(PyPI) = 4.27.1 No fix listed
pypi transformers(PyPI) = 4.27.2 No fix listed
pypi transformers(PyPI) = 4.27.3 No fix listed
pypi transformers(PyPI) = 4.27.4 No fix listed
pypi transformers(PyPI) = 4.28.0 No fix listed
pypi transformers(PyPI) = 4.28.1 No fix listed
pypi transformers(PyPI) = 4.29.0 No fix listed
pypi transformers(PyPI) = 4.29.1 No fix listed
pypi transformers(PyPI) = 4.29.2 No fix listed
pypi transformers(PyPI) = 4.3.0 No fix listed
pypi transformers(PyPI) = 4.3.0rc1 No fix listed
pypi transformers(PyPI) = 4.3.1 No fix listed
pypi transformers(PyPI) = 4.3.2 No fix listed
pypi transformers(PyPI) = 4.3.3 No fix listed
pypi transformers(PyPI) = 4.30.0 No fix listed
pypi transformers(PyPI) = 4.30.1 No fix listed
pypi transformers(PyPI) = 4.30.2 No fix listed
pypi transformers(PyPI) = 4.31.0 No fix listed
pypi transformers(PyPI) = 4.32.0 No fix listed
pypi transformers(PyPI) = 4.32.1 No fix listed
pypi transformers(PyPI) = 4.33.0 No fix listed
pypi transformers(PyPI) = 4.33.1 No fix listed
pypi transformers(PyPI) = 4.33.2 No fix listed
pypi transformers(PyPI) = 4.33.3 No fix listed
pypi transformers(PyPI) = 4.34.0 No fix listed
pypi transformers(PyPI) = 4.34.1 No fix listed
pypi transformers(PyPI) = 4.35.0 No fix listed
pypi transformers(PyPI) = 4.35.1 No fix listed
pypi transformers(PyPI) = 4.35.2 No fix listed
pypi transformers(PyPI) = 4.36.0 No fix listed
pypi transformers(PyPI) = 4.36.1 No fix listed
pypi transformers(PyPI) = 4.36.2 No fix listed
pypi transformers(PyPI) = 4.37.0 No fix listed
pypi transformers(PyPI) = 4.37.1 No fix listed
pypi transformers(PyPI) = 4.37.2 No fix listed
pypi transformers(PyPI) = 4.38.0 No fix listed
pypi transformers(PyPI) = 4.38.1 No fix listed
pypi transformers(PyPI) = 4.38.2 No fix listed
pypi transformers(PyPI) = 4.39.0 No fix listed
pypi transformers(PyPI) = 4.39.1 No fix listed
pypi transformers(PyPI) = 4.39.2 No fix listed
pypi transformers(PyPI) = 4.39.3 No fix listed
pypi transformers(PyPI) = 4.4.0 No fix listed
pypi transformers(PyPI) = 4.4.1 No fix listed
pypi transformers(PyPI) = 4.4.2 No fix listed
pypi transformers(PyPI) = 4.40.0 No fix listed
pypi transformers(PyPI) = 4.40.1 No fix listed
pypi transformers(PyPI) = 4.40.2 No fix listed
pypi transformers(PyPI) = 4.41.0 No fix listed
pypi transformers(PyPI) = 4.41.1 No fix listed
pypi transformers(PyPI) = 4.41.2 No fix listed
pypi transformers(PyPI) = 4.42.0 No fix listed
pypi transformers(PyPI) = 4.42.1 No fix listed
pypi transformers(PyPI) = 4.42.2 No fix listed
pypi transformers(PyPI) = 4.42.3 No fix listed
pypi transformers(PyPI) = 4.42.4 No fix listed
pypi transformers(PyPI) = 4.43.0 No fix listed
pypi transformers(PyPI) = 4.43.1 No fix listed
pypi transformers(PyPI) = 4.43.2 No fix listed
pypi transformers(PyPI) = 4.43.3 No fix listed
pypi transformers(PyPI) = 4.43.4 No fix listed
pypi transformers(PyPI) = 4.44.0 No fix listed
pypi transformers(PyPI) = 4.44.1 No fix listed
pypi transformers(PyPI) = 4.44.2 No fix listed
pypi transformers(PyPI) = 4.45.0 No fix listed
pypi transformers(PyPI) = 4.45.1 No fix listed
pypi transformers(PyPI) = 4.45.2 No fix listed
pypi transformers(PyPI) = 4.46.0 No fix listed
pypi transformers(PyPI) = 4.46.1 No fix listed
pypi transformers(PyPI) = 4.46.2 No fix listed
pypi transformers(PyPI) = 4.46.3 No fix listed
pypi transformers(PyPI) = 4.47.0 No fix listed
pypi transformers(PyPI) = 4.47.1 No fix listed
pypi transformers(PyPI) = 4.5.0 No fix listed
pypi transformers(PyPI) = 4.5.1 No fix listed
pypi transformers(PyPI) = 4.6.0 No fix listed
pypi transformers(PyPI) = 4.6.1 No fix listed
pypi transformers(PyPI) = 4.7.0 No fix listed
pypi transformers(PyPI) = 4.8.0 No fix listed
pypi transformers(PyPI) = 4.8.1 No fix listed
pypi transformers(PyPI) = 4.8.2 No fix listed
pypi transformers(PyPI) = 4.9.0 No fix listed
pypi transformers(PyPI) = 4.9.1 No fix listed
pypi transformers(PyPI) = 4.9.2 No fix listed
huggingface/transformers < 4.48.0 4.48.0
huggingface transformers < 4.48.0 4.48.0

References