Skip to content

CVE-2025-5197 Regular Expression Denial of Service (ReDoS) in huggingface/transformers

MediumCVSS 5.3 EPSS 0.45%
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 exists in the Hugging Face Transformers library, specifically in the convert_tf_weight_name_to_pt_weight_name() function. This function, responsible for converting TensorFlow weight names to PyTorch format, uses a regex pattern /[^/]*___([^/]*)/ that can be exploited to cause excessive CPU consumption through crafted input strings due to catastrophic backtracking. The vulnerability affects versions up to 4.51.3 and is fixed in version 4.53.0. This issue can lead to service disruption, resource exhaustion, and potential API service vulnerabilities, impacting model conversion processes between TensorFlow and PyTorch formats.

Upgrade path

3 packages: 3 fixed.

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

Affected products

ProductAffected versionsFixed in
pypi transformers(PyPI) < 4.53.0 4.53.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 162 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.48.0 No fix listed
pypi transformers(PyPI) = 4.48.1 No fix listed
pypi transformers(PyPI) = 4.48.2 No fix listed
pypi transformers(PyPI) = 4.48.3 No fix listed
pypi transformers(PyPI) = 4.49.0 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.50.0 No fix listed
pypi transformers(PyPI) = 4.50.1 No fix listed
pypi transformers(PyPI) = 4.50.2 No fix listed
pypi transformers(PyPI) = 4.50.3 No fix listed
pypi transformers(PyPI) = 4.51.0 No fix listed
pypi transformers(PyPI) = 4.51.1 No fix listed
pypi transformers(PyPI) = 4.51.2 No fix listed
pypi transformers(PyPI) = 4.51.3 No fix listed
pypi transformers(PyPI) = 4.52.0 No fix listed
pypi transformers(PyPI) = 4.52.1 No fix listed
pypi transformers(PyPI) = 4.52.2 No fix listed
pypi transformers(PyPI) = 4.52.3 No fix listed
pypi transformers(PyPI) = 4.52.4 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.53.0 4.53.0
huggingface transformers < 4.53.0 4.53.0

References