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

transformers Updated 02 Oct 2025

Summary

22/11/2024
Yes i
High
8.8

CVE-2024-11392: Hugging Face Transformers MobileViTV2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. Affects transformers versions < 4.48.0. Fixed in 4.48.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Hugging Face Transformers is a popular library in the machine learning ecosystem, primarily used for natural language processing tasks. It provides pre-trained models and tools for building and deploying state-of-the-art machine learning models. The library is widely adopted due to its ease of use and extensive documentation. However, it is susceptible to vulnerabilities that can lead to severe security risks, such as remote code execution.

Vulnerability Detail

The vulnerability identified as CVE-2024-11392 arises from improper handling of configuration files within the Hugging Face Transformers library. Specifically, the flaw is due to a lack of validation for user-supplied data, allowing for the deserialization of untrusted data. This can enable remote attackers to execute arbitrary code on affected installations, provided that the user interacts with a malicious page or file. The potential ramifications include unauthorized access to sensitive information and complete control over the affected system, making it a critical security concern.

How To Fix

Latest published version: 5.20.2 as of 22 Oct 2026

pip install --upgrade "transformers==5.20.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.48.0

This is the first release that contains the fix.

pip install --upgrade "transformers==4.48.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users are advised to avoid opening untrusted configuration files or visiting unknown web pages that may exploit this vulnerability until the package is updated to a secure version.

Conclusion

CVE-2024-11392 is a significant vulnerability in the Hugging Face Transformers library that poses a serious risk of remote code execution. Users are strongly encouraged to update to the latest version to mitigate this risk. Awareness and prompt action are essential to maintaining the security of applications utilizing this library.

See every vulnerability recorded for transformers →

Share this vulnerability

FAQ

CVE-2024-11392 is a vulnerability in the Hugging Face Transformers library that allows remote code execution due to deserialization of untrusted data.

If you are using a version of the Hugging Face Transformers library prior to 4.48.0, your installation may be affected by this vulnerability.

If an immediate update is not possible, avoid interacting with untrusted files or web pages that could exploit this vulnerability.

The vulnerability can lead to remote code execution, allowing attackers to gain unauthorized access to systems and sensitive data.

More information can be found in the official advisory on the GitHub advisory database or by using tools like Vulert to monitor for vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for transformers.

How To Fix

Latest published version: 5.20.2 as of 22 Oct 2026

pip install --upgrade "transformers==5.20.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.48.0

This is the first release that contains the fix.

pip install --upgrade "transformers==4.48.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback