CVE-2024-11392: CWE-502: Deserialization of Untrusted Data in Hugging Face Transformers
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.
AI Analysis
Technical Summary
CVE-2024-11392 is a deserialization vulnerability classified under CWE-502 found in the Hugging Face Transformers library, specifically impacting the MobileViTV2 model. The root cause is the lack of proper validation of user-supplied configuration files, which are deserialized insecurely. Deserialization of untrusted data can allow an attacker to craft malicious input that, when processed by the vulnerable library, leads to arbitrary code execution within the context of the current user. The attack vector requires user interaction, such as opening a malicious file or visiting a malicious webpage that triggers the vulnerable deserialization process. The vulnerability is network exploitable (AV:N) but requires high attack complexity (AC:H) and user interaction (UI:R). No privileges are required (PR:N), and the scope remains unchanged (S:U). The impact on confidentiality, integrity, and availability is high (C:H/I:H/A:H), as arbitrary code execution can lead to full system compromise. Although no public exploits are currently known, the vulnerability poses a significant risk to organizations relying on Hugging Face Transformers for AI/ML workloads, especially where untrusted data inputs are processed. The vulnerability was assigned by ZDI (ZDI-CAN-24322) and published on 2024-11-22. No patches are listed yet, so mitigation focuses on restricting untrusted input and monitoring for suspicious activity.
Potential Impact
The vulnerability allows remote attackers to execute arbitrary code on affected systems, potentially leading to full compromise of the host running the Hugging Face Transformers library. This can result in unauthorized access to sensitive data, manipulation or destruction of AI models and data, disruption of AI services, and lateral movement within networks. Organizations using the affected versions in production or research environments face risks including data breaches, intellectual property theft, and operational downtime. The requirement for user interaction limits automated exploitation but does not eliminate risk, especially in environments where users may open untrusted files or visit malicious sites. The high impact on confidentiality, integrity, and availability means that successful exploitation can have severe consequences for organizations relying on AI/ML workflows, particularly those handling sensitive or proprietary data.
Mitigation Recommendations
1. Immediately audit and restrict the sources of configuration files and other inputs processed by Hugging Face Transformers to trusted origins only. 2. Implement strict input validation and sanitization for all user-supplied data before deserialization. 3. Employ application-level sandboxing or containerization to limit the impact of potential code execution. 4. Monitor systems for unusual activity indicative of exploitation attempts, such as unexpected process spawning or network connections. 5. Educate users about the risks of opening files or visiting links from untrusted sources, especially in environments using the vulnerable library. 6. Track updates from Hugging Face for official patches or security advisories and apply them promptly once available. 7. Consider using runtime application self-protection (RASP) or endpoint detection and response (EDR) tools to detect and block exploitation attempts. 8. Review and harden access controls around AI/ML infrastructure to minimize the privileges of processes running the Transformers library.
Affected Countries
United States, China, Germany, United Kingdom, Canada, France, Japan, South Korea, India, Australia, Netherlands, Israel, Singapore
CVE-2024-11392: CWE-502: Deserialization of Untrusted Data in Hugging Face Transformers
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-11392 is a deserialization vulnerability classified under CWE-502 found in the Hugging Face Transformers library, specifically impacting the MobileViTV2 model. The root cause is the lack of proper validation of user-supplied configuration files, which are deserialized insecurely. Deserialization of untrusted data can allow an attacker to craft malicious input that, when processed by the vulnerable library, leads to arbitrary code execution within the context of the current user. The attack vector requires user interaction, such as opening a malicious file or visiting a malicious webpage that triggers the vulnerable deserialization process. The vulnerability is network exploitable (AV:N) but requires high attack complexity (AC:H) and user interaction (UI:R). No privileges are required (PR:N), and the scope remains unchanged (S:U). The impact on confidentiality, integrity, and availability is high (C:H/I:H/A:H), as arbitrary code execution can lead to full system compromise. Although no public exploits are currently known, the vulnerability poses a significant risk to organizations relying on Hugging Face Transformers for AI/ML workloads, especially where untrusted data inputs are processed. The vulnerability was assigned by ZDI (ZDI-CAN-24322) and published on 2024-11-22. No patches are listed yet, so mitigation focuses on restricting untrusted input and monitoring for suspicious activity.
Potential Impact
The vulnerability allows remote attackers to execute arbitrary code on affected systems, potentially leading to full compromise of the host running the Hugging Face Transformers library. This can result in unauthorized access to sensitive data, manipulation or destruction of AI models and data, disruption of AI services, and lateral movement within networks. Organizations using the affected versions in production or research environments face risks including data breaches, intellectual property theft, and operational downtime. The requirement for user interaction limits automated exploitation but does not eliminate risk, especially in environments where users may open untrusted files or visit malicious sites. The high impact on confidentiality, integrity, and availability means that successful exploitation can have severe consequences for organizations relying on AI/ML workflows, particularly those handling sensitive or proprietary data.
Mitigation Recommendations
1. Immediately audit and restrict the sources of configuration files and other inputs processed by Hugging Face Transformers to trusted origins only. 2. Implement strict input validation and sanitization for all user-supplied data before deserialization. 3. Employ application-level sandboxing or containerization to limit the impact of potential code execution. 4. Monitor systems for unusual activity indicative of exploitation attempts, such as unexpected process spawning or network connections. 5. Educate users about the risks of opening files or visiting links from untrusted sources, especially in environments using the vulnerable library. 6. Track updates from Hugging Face for official patches or security advisories and apply them promptly once available. 7. Consider using runtime application self-protection (RASP) or endpoint detection and response (EDR) tools to detect and block exploitation attempts. 8. Review and harden access controls around AI/ML infrastructure to minimize the privileges of processes running the Transformers library.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- zdi
- Date Reserved
- 2024-11-18T23:29:44.087Z
- Cvss Version
- 3.0
- State
- PUBLISHED
Threat ID: 699f6e12b7ef31ef0b594a7c
Added to database: 2/25/2026, 9:48:02 PM
Last enriched: 2/26/2026, 1:32:38 PM
Last updated: 4/12/2026, 3:55:36 PM
Views: 18
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.