Vulnerability · Published Nov 22, 2024 · Assigned by zdi

CVE-2024-11392Hugging Face Transformers MobileViTV2 Deserialization of Untrusted Data Remote Code Execution Vulnerability

High 7.5

In plain English

A high-severity unsafe deserialization in Transformers from Hugging Face. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 7.7% (higher than 95% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.5High
Exploit odds (30 days)7.7%top 5.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official description

Hugging Face Transformers MobileViTV2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the handling of configuration files. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-24322.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPItransformers4.48.0GHSA-qxrp-vhvm-j765
PyPItransformers4.48.0PYSEC-2024-227

Affected products (as reported)

VendorProductVersions
Hugging Face Transformers 940fde8dafaecb8f17b588c5078291f1c1a420c8

Weakness: CWE-502 · Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

References