CVE-2024-3568
April 10, 2024
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.
Affected Packages
transformers (PYTHON):
Affected version(s) >=0.1 <4.38.0Fix Suggestion:
Update to version 4.38.0Related ResourcesĀ (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
LOW
CVSS v3
Base Score:
3.4
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
Deserialization of Untrusted Data
EPSS
Base Score:
10.0