NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Transformers

CVE-2024-11392: Deserialization of Untrusted Data in Hugging Face Transformers

highCVSS 3.0 7.5GHSA-qxrp-vhvm-j765

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 transformers

Also 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 entries