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

Hugging Face Transformers Trax Model 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 model 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-25012.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 13:33:10 UTC

Technical Analysis

CVE-2024-11394 is a deserialization of untrusted data vulnerability (CWE-502) found in the Hugging Face Transformers library, specifically affecting the Trax model deserialization functionality. The vulnerability stems from the library's failure to properly validate and sanitize user-supplied model files before deserialization. Deserialization is a process where data is converted back into an executable object; if this data is maliciously crafted, it can lead to arbitrary code execution. In this case, an attacker can craft a malicious model file that, when loaded by the vulnerable Transformers library, triggers execution of attacker-controlled code. The attack vector requires user interaction, such as opening a malicious file or visiting a malicious webpage that loads the model. The vulnerability does not require prior authentication and can be exploited remotely over the network. The CVSS 3.0 score of 8.8 indicates a high severity with network attack vector, low attack complexity, no privileges required, but user interaction needed. The impact includes full compromise of the affected system under the current user's privileges, affecting confidentiality, integrity, and availability. No patches or exploit code are currently publicly available, but the vulnerability was assigned and published by the Zero Day Initiative (ZDI) under CAN-25012. This vulnerability is particularly concerning for organizations leveraging Hugging Face Transformers in production or research environments, especially where untrusted model files might be loaded.

Potential Impact

The potential impact of CVE-2024-11394 is significant for organizations worldwide using Hugging Face Transformers, especially those incorporating Trax models. Successful exploitation allows attackers to execute arbitrary code remotely, potentially leading to full system compromise under the current user's privileges. This can result in data theft, unauthorized access, system manipulation, or disruption of services. Since the vulnerability affects a popular open-source machine learning library widely used in AI research, development, and production systems, the attack surface is broad. Organizations relying on automated model loading or accepting model files from external or untrusted sources are at higher risk. The requirement for user interaction somewhat limits mass exploitation but does not eliminate targeted attacks, such as spear phishing or supply chain attacks. The compromise of AI model environments can also undermine trust in AI outputs and lead to further downstream security issues. Given the high CVSS score and the critical nature of code execution vulnerabilities, the impact is rated high.

Mitigation Recommendations

To mitigate CVE-2024-11394, organizations should: 1) Immediately audit and restrict the sources of model files loaded into Hugging Face Transformers, ensuring only trusted and verified models are used. 2) Implement strict validation and sandboxing mechanisms around model deserialization processes to prevent execution of malicious payloads. 3) Update to the latest version of Hugging Face Transformers once an official patch is released addressing this vulnerability. 4) Employ network-level protections such as web filtering and endpoint security to reduce the risk of users opening malicious files or visiting malicious sites. 5) Educate users about the risks of opening untrusted files or links, emphasizing the importance of verifying sources. 6) Monitor systems for unusual behavior indicative of exploitation attempts, including unexpected process execution or network connections. 7) Consider isolating AI model processing environments to limit the blast radius of potential compromises. 8) If possible, disable or limit deserialization features that accept external model files until patched. These steps go beyond generic advice by focusing on controlling input sources, user awareness, and environment hardening specific to the deserialization context.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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, 1:33:10 PM

Last updated: 4/12/2026, 5:31:26 PM

Views: 17

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 for AI refresh and higher limits.

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

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses