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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | transformers | 4.48.0 | GHSA-wrfc-pvp9-mr9g |
| PyPI | transformers | 4.48.0 | PYSEC-2024-228 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- ZDI-24-1514 x_research-advisory