Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-11394: CWE-502: Deserialization of Untrusted Data in Hugging Face Transformers

0
High
VulnerabilityCVE-2024-11394cvecve-2024-11394cwe-502
Published: Fri Nov 22 2024 (11/22/2024, 21:23:49 UTC)
Source: CVE Database V5
Vendor/Project: Hugging Face
Product: Transformers

Description

CVE-2024-11394 is a high-severity remote code execution vulnerability in the Hugging Face Transformers library, specifically related to deserialization of untrusted Trax model files. An attacker can exploit this flaw by tricking a user into opening a malicious model file or visiting a crafted webpage, leading to arbitrary code execution in the context of the current user. The vulnerability arises from improper validation of user-supplied data during model deserialization. No authentication is required, but user interaction is necessary. The CVSS score is 8. 8, reflecting high impact on confidentiality, integrity, and availability. While no known exploits are reported in the wild yet, the widespread use of Hugging Face Transformers in AI and ML applications makes this a significant threat. Organizations using this library should prioritize patching or mitigating this issue to prevent potential compromise.

AI-Powered Analysis

AILast updated: 02/26/2026, 07:10:48 UTC

Technical Analysis

CVE-2024-11394 is a critical vulnerability classified under CWE-502 (Deserialization of Untrusted Data) affecting the Hugging Face Transformers library, specifically the Trax model deserialization process. The vulnerability stems from the library's failure to properly validate and sanitize user-supplied model files before deserialization. This flaw allows remote attackers to craft malicious model files that, when loaded by a victim, execute arbitrary code with the privileges of the user running the application. Exploitation requires user interaction, such as opening a malicious file or visiting a malicious webpage that triggers model loading. The vulnerability does not require prior authentication, increasing its risk. The CVSS v3.0 score of 8.8 indicates a high-severity issue with network attack vector, low attack complexity, no privileges required, but user interaction needed, and high impact on confidentiality, integrity, and availability. This vulnerability is particularly concerning given the growing adoption of Hugging Face Transformers in AI/ML workflows, including in research, enterprise, and cloud environments. The lack of available patches at the time of disclosure further elevates the urgency for mitigation. While no known exploits have been reported in the wild, the potential for remote code execution makes this a critical risk for affected users.

Potential Impact

The impact of CVE-2024-11394 is substantial for organizations leveraging Hugging Face Transformers in their AI and machine learning pipelines. Successful exploitation can lead to full remote code execution, allowing attackers to compromise system confidentiality, integrity, and availability. This can result in data theft, unauthorized system control, lateral movement within networks, and disruption of AI services. Since the vulnerability requires user interaction, social engineering or phishing campaigns could be used to deliver malicious model files or links. The widespread use of Hugging Face Transformers across industries such as technology, finance, healthcare, and academia increases the attack surface. Cloud-based AI services and development environments are also at risk, potentially impacting large-scale deployments. The absence of known exploits currently provides a window for proactive defense, but the high severity score and ease of exploitation mean that organizations must act swiftly to prevent potential breaches and operational disruptions.

Mitigation Recommendations

To mitigate CVE-2024-11394, organizations should immediately audit their use of Hugging Face Transformers and restrict loading of untrusted or unauthenticated model files. Implement strict validation and integrity checks on all model files before deserialization, including cryptographic signatures or hashes where possible. Educate users and developers to avoid opening model files from untrusted sources or clicking on suspicious links that may trigger model loading. Employ application-level sandboxing or containerization to limit the impact of potential code execution. Monitor systems for unusual behavior indicative of exploitation attempts. Stay updated with Hugging Face security advisories and apply patches or updates as soon as they become available. Additionally, consider network-level protections such as web filtering and endpoint detection and response (EDR) solutions to detect and block exploitation attempts. For development environments, enforce the principle of least privilege to minimize damage from a compromised process.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
zdi
Date Reserved
2024-11-18T23:29:55.445Z
Cvss Version
3.0
State
PUBLISHED

Threat ID: 699f6e12b7ef31ef0b594a82

Added to database: 2/25/2026, 9:48:02 PM

Last enriched: 2/26/2026, 7:10:48 AM

Last updated: 2/26/2026, 9:24:47 AM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats