Skip to content

CVE-2024-3568 Arbitrary Code Execution via Deserialization in huggingface/transformers

CriticalCVSS 9.6 EPSS 2.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

The huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data within the load_repo_checkpoint() function of the TFPreTrainedModel() class. Attackers can execute arbitrary code and commands by crafting a malicious serialized payload, exploiting the use of pickle.load() on data from potentially untrusted sources. This vulnerability allows for remote code execution (RCE) by deceiving victims into loading a seemingly harmless checkpoint during a normal training process, thereby enabling attackers to execute arbitrary code on the targeted machine.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
huggingface transformers < 4.38.0 4.38.0 Fixed
huggingface/transformers < 4.38 4.38 Fixed
pypi transformers(PyPI) < 4.38.0; = 0.1; = 2.0.0; = 2.1.0 +128 more 4.38.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi transformers(PyPI) < 4.38.0 4.38.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 109 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.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.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.38 4.38
huggingface transformers < 4.38.0 4.38.0

References