CVE-2024-11392: Deserialization of Untrusted Data in Hugging Face Transformers
CVE-2024-11392 is a deserialization flaw in the MobileViTV2 configuration handling of Hugging Face Transformers. A crafted configuration file can run code as the user who loads it. It affects transformers before 4.48.0. Hugging Face rejected the original report, and the 4.48.0 change that the tracker links removes conversion scripts from release wheels.
Published Nov 23, 2024 · Updated Aug 21, 2026 · Analysis Nov 1, 2026
What an attacker can do
The Zero Day Initiative describes the flaw as untrusted data being deserialized while the library handles MobileViTV2 configuration files. Deserialization of attacker-shaped data can lead to code running in the process that loads it. The code runs with the privileges of the current user.
The attacker needs the victim to open a malicious file or visit a malicious page, so user interaction is required. The attack complexity is rated high in the CVSS 3.0 vector. In practice this means a poisoned model or configuration pulled from a hub, a shared drive or a download. A notebook, training box or CI runner that loads it would run attacker code with its credentials, tokens and data access.
The vendor disagreed with the severity. ZDI says Hugging Face rejected the report on 14 October 2024 and ZDI published it as a 0-day on 19 November 2024. The linked pull request says the affected conversion scripts often open pickle or old Torch .bin files, and calls a serious attack through them unlikely. The pull request does not say which function is unsafe.
Who is affected
transformers from any earlier release up to but not including 4.48.0. The risk applies to anyone who loads MobileViTV2 configurations or conversion scripts from sources they do not control. Check the installed version:
pip show transformersAlso check any container images and lock files that pin transformers.
transformers
- Ecosystem
- PyPI
- Affected
- >= 0, < 4.48.0
- Fixed in
- 4.48.0
- Check
pip show transformers
How to fix it
Upgrade to transformers 4.48.0:
pip install --upgrade "transformers>=4.48.0"The linked pull request 35296 changes release.py so that model conversion scripts are deleted when release wheels are built. The ZDI advisory offers no other mitigation than restricting interaction with the application. As a practical step, load models and configs only from sources you trust.
How to tell if you were hit
Review which configuration and model files were loaded on machines that run transformers, and where they came from. Look for unexpected child processes, outbound connections or file writes from Python processes that were loading a MobileViTV2 model. Check whether the conversion scripts shipped in your installed transformers package, and whether anyone ran them on files from outside sources.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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.
Questions
- Is CVE-2024-11392 exploited in the wild?
None of the sources read say so, and it is not in the CISA KEV catalog. ZDI published it as a 0-day after the vendor rejected the report.
- Does exploitation need user interaction?
Yes. The target must open a malicious file or visit a malicious page, so the attacker has to get a crafted configuration in front of someone who loads it.
- Which transformers version fixes it?
4.48.0. The linked change removes model conversion scripts from release wheels, since they often open pickle or old Torch checkpoint formats.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Transformers vulnerabilities
All Transformers entriesCVE-2026-80047
Hugging Face Transformers downloads custom generation code before trust consent
high7.8No fixSep 1, 2026CVE-2026-9856
Transformers save_pretrained path traversal allows arbitrary file writes through chat template names
high7.1Aug 2, 2026CVE-2026-5241
huggingface/transformers: Arbitrary Code Execution During Model Initialization in the LightGlue Model Loading Path
high8.0Jun 3, 2026CVE-2026-4372
HuggingFace transformers vulnerable to remote code execution
high7.8May 26, 2026CVE-2026-1839
HuggingFace Transformers allows for arbitrary code execution in the `Trainer` class
medium6.5Apr 7, 2026CVE-2025-6921
Hugging Face Transformers vulnerable to Regular Expression Denial of Service (ReDoS) in the AdamWeightDecay optimizer
medium5.3Sep 23, 2025
