#VU95805 Deserialization of Untrusted Data in transformers


Vulnerability identifier: #VU95805

Vulnerability risk: High

CVSSv3.1: 7.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2024-3568

CWE-ID: CWE-502

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
transformers
Other software / Other software solutions

Vendor: huggingface

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to insecure input validation within the load_repo_checkpoint() function of the TFPreTrainedModel() class. A remote attacker can pass specially crafted data to the application and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

transformers: 0.1.2 - 4.37.2


External links
http://huntr.com/bounties/b3c36992-5264-4d7f-9906-a996efafba8f
http://github.com/huggingface/transformers/commit/693667b8ac8138b83f8adb6522ddaf42fa07c125


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability