CVE-2024-11392
HIGHHugging Face Transformers MobileViTV2 - Deserialization
Title source: llmExploitation Summary
EIP tracks 2 public exploits for CVE-2024-11392. PoCs published by The Kernel Panic, Piyush-Bhor.
AI-analyzed exploit summary This exploit leverages YAML deserialization in Hugging Face Transformers' convert_mlcvnets_to_pytorch.py script to achieve remote code execution. The malicious YAML file triggers arbitrary command execution via Python's `exec` function during deserialization.
Description
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.
Exploits (2)
This exploit leverages YAML deserialization in Hugging Face Transformers' convert_mlcvnets_to_pytorch.py script to achieve remote code execution. The malicious YAML file triggers arbitrary command execution via Python's `exec` function during deserialization.
This repository contains a functional exploit for CVE-2024-11392, demonstrating a deserialization vulnerability in Hugging Face Transformers' MobileViTV2 module. The exploit leverages unsafe YAML deserialization via `yaml.FullLoader` to achieve remote code execution.
References (1)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H