The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-11394

CVE-2024-11394: Hugging Face Transformers RCE Vulnerability

CVE-2024-11394 is a remote code execution flaw in Hugging Face Transformers Trax model that allows attackers to execute arbitrary code through malicious files. This article covers the technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-11394 Overview

CVE-2024-11394 is a critical insecure deserialization vulnerability affecting Hugging Face Transformers, a widely-used machine learning library for natural language processing and deep learning applications. This vulnerability allows remote attackers to execute arbitrary code on affected installations through maliciously crafted Trax model files. User interaction is required to exploit this vulnerability, as the target must visit a malicious page or open a malicious file containing the payload.

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, potentially leading to complete system compromise.

Critical Impact

Successful exploitation enables remote code execution in the context of the current user, potentially allowing attackers to steal sensitive data, install malware, pivot to other systems, or establish persistent access to affected environments.

Affected Products

  • Hugging Face Transformers (all versions handling Trax model files)

Discovery Timeline

  • 2024-11-22 - CVE CVE-2024-11394 published to NVD
  • 2025-02-10 - Last updated in NVD database

Technical Details for CVE-2024-11394

Vulnerability Analysis

This vulnerability is classified under CWE-502 (Deserialization of Untrusted Data), a common weakness that occurs when applications deserialize data from untrusted sources without proper validation. In the context of Hugging Face Transformers, the library processes Trax model files that can contain serialized Python objects. When these model files are loaded, the deserialization process can instantiate arbitrary Python objects, potentially executing malicious code embedded within the serialized data.

The attack requires user interaction, meaning a victim must be enticed to download and load a malicious model file. Given the collaborative nature of the machine learning community and the common practice of sharing pre-trained models through platforms like Hugging Face Hub, this attack vector presents a significant risk. Researchers and developers frequently download models from various sources, making them susceptible to supply chain attacks.

Root Cause

The root cause of this vulnerability lies in the insufficient validation of user-supplied data during the deserialization process of Trax model files. Python's native serialization mechanisms, such as pickle, are inherently unsafe when processing untrusted data because they can execute arbitrary code during deserialization. The Transformers library failed to implement adequate safeguards or validation checks when handling model files, allowing malicious payloads to be executed upon loading.

Attack Vector

The attack vector for CVE-2024-11394 operates through the network, requiring the victim to interact with a malicious resource. The exploitation scenario typically unfolds as follows:

  1. An attacker crafts a malicious Trax model file containing a serialized Python object designed to execute arbitrary code upon deserialization
  2. The attacker hosts this malicious model on a public repository, phishing page, or distributes it through other social engineering means
  3. A victim downloads or loads the malicious model file using Hugging Face Transformers
  4. During the model loading process, the serialized payload is deserialized without proper validation
  5. The malicious code executes in the context of the current user, granting the attacker access to the system

This vulnerability was tracked by the Zero Day Initiative as ZDI-CAN-25012. For additional technical details, refer to the Zero Day Initiative Advisory ZDI-24-1515.

Detection Methods for CVE-2024-11394

Indicators of Compromise

  • Unexpected network connections originating from Python processes handling machine learning workloads
  • Suspicious process spawning or command execution following model file loading operations
  • Unusual file system modifications or new files created in user directories after loading external models
  • Anomalous behavior from transformers library processes, including attempts to access sensitive system resources

Detection Strategies

  • Monitor for suspicious deserialization patterns in Python applications, particularly those involving pickle or similar serialization libraries
  • Implement file integrity monitoring on model storage directories to detect unauthorized modifications
  • Deploy endpoint detection solutions capable of identifying code execution patterns associated with deserialization attacks
  • Analyze network traffic for model downloads from untrusted or unknown sources

Monitoring Recommendations

  • Enable verbose logging for Hugging Face Transformers operations to capture model loading events
  • Implement behavioral monitoring for Python processes to detect post-exploitation activities
  • Monitor for unusual child process creation from machine learning application processes
  • Track model file downloads and maintain an inventory of trusted model sources

How to Mitigate CVE-2024-11394

Immediate Actions Required

  • Audit all model files currently in use and verify they originate from trusted sources
  • Restrict model downloads to verified repositories and implement allowlisting for approved model sources
  • Isolate machine learning workloads in sandboxed environments with restricted permissions
  • Update Hugging Face Transformers to the latest version that addresses this vulnerability
  • Educate development teams about the risks of loading untrusted model files

Patch Information

Organizations should update Hugging Face Transformers to the latest available version. Consult the Zero Day Initiative Advisory ZDI-24-1515 for specific version information and vendor guidance. Given the high EPSS percentile of 96.58%, indicating a significant probability of exploitation in the wild, patching should be prioritized.

Workarounds

  • Only load model files from trusted and verified sources, such as official Hugging Face repositories with verified checksums
  • Implement network segmentation to isolate machine learning environments from critical infrastructure
  • Run model loading operations in containerized or sandboxed environments with minimal privileges
  • Consider implementing custom model loading functions that validate file contents before deserialization
  • Disable automatic model downloads and require manual verification before loading new models
bash
# Configuration example
# Run transformers in isolated environment with restricted permissions
docker run --rm -it \
  --network none \
  --read-only \
  --security-opt=no-new-privileges \
  -v /path/to/trusted/models:/models:ro \
  python:3.10-slim python -c "from transformers import AutoModel; model = AutoModel.from_pretrained('/models/verified-model')"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechHuggingface Transformers

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability30.74%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • Zero Day Initiative Advisory ZDI-24-1515
  • Related CVEs
  • CVE-2024-11392: Huggingface Transformers RCE Vulnerability

  • CVE-2024-11393: Hugging Face Transformers RCE Vulnerability

  • CVE-2025-2099: Huggingface Transformers ReDoS Vulnerability

  • CVE-2023-7018: Huggingface Transformers Deserialization Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English