Vulnerability · Published Nov 22, 2024 · Assigned by zdi

CVE-2024-11393Hugging Face Transformers MaskFormer Model Deserialization of Untrusted Data Remote Code Execution Vulnerability

High 8.8

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 3.3% (higher than 88% 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)8.8High
Exploit odds (30 days)3.3%top 11.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official description

Hugging Face Transformers MaskFormer Model 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 parsing of model 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-25191.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPItransformers4.48.0GHSA-wrfc-pvp9-mr9g
PyPItransformers4.48.0PYSEC-2024-228

Affected products (as reported)

VendorProductVersions
Hugging Face Transformers 8820fe8b8c4b9da94cf1e4761876f85c562e0efe

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

References