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-11393

CVE-2024-11393: Hugging Face Transformers RCE Vulnerability

CVE-2024-11393 is a remote code execution vulnerability in Hugging Face Transformers MaskFormer that exploits insecure deserialization. This article covers the technical details, affected versions, impact, and mitigation.

Published: January 28, 2026

CVE-2024-11393 Overview

CVE-2024-11393 is a critical insecure deserialization vulnerability affecting Hugging Face Transformers, specifically in the MaskFormer model file parsing functionality. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. The flaw stems from the lack of proper validation of user-supplied data during model file parsing, which can result in deserialization of untrusted data. User interaction is required to exploit this vulnerability, as the target must visit a malicious page or open a malicious model file.

Critical Impact

Remote code execution via insecure deserialization in MaskFormer model files allows attackers to execute arbitrary code in the context of the current user, potentially leading to complete system compromise.

Affected Products

  • Hugging Face Transformers (all versions prior to patch)
  • MaskFormer model implementations within the Transformers library
  • Applications and pipelines utilizing Hugging Face Transformers for model loading

Discovery Timeline

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

Technical Details for CVE-2024-11393

Vulnerability Analysis

This vulnerability is classified as CWE-502 (Deserialization of Untrusted Data). The flaw exists within the parsing mechanism for MaskFormer model files in the Hugging Face Transformers library. When processing model files, the library fails to properly validate user-supplied data before deserialization, creating an opportunity for attackers to inject malicious serialized objects that execute arbitrary code upon deserialization.

The vulnerability requires user interaction for exploitation. An attacker must craft a malicious model file and convince a user to load it, either by visiting a malicious page hosting the model or by directly opening a malicious file. Once the malicious model is loaded, the deserialization process triggers arbitrary code execution in the context of the current user.

Root Cause

The root cause of CVE-2024-11393 is the absence of proper input validation and sanitization when deserializing model file data. The MaskFormer model parser trusts user-supplied data without verifying its integrity or safety, allowing attackers to embed malicious payloads within model files that execute during the deserialization process.

This is a common pattern in machine learning frameworks where model files often contain serialized Python objects (such as through pickle) that can execute arbitrary code when loaded. The lack of sandboxing or validation of these serialized objects creates a significant attack surface.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker can exploit this vulnerability through several methods:

  1. Malicious Model Hosting: Publishing a malicious model file to a public repository or website where users might download and load it
  2. Social Engineering: Convincing users to load a malicious model file through phishing or other social engineering techniques
  3. Supply Chain Attack: Compromising a legitimate model repository to inject malicious model files

When a victim loads the malicious model file using the Hugging Face Transformers library, the insecure deserialization process executes the attacker's payload, granting arbitrary code execution with the privileges of the current user.

The vulnerability was tracked by the Zero Day Initiative as ZDI-CAN-25191 and published as ZDI-24-1514.

Detection Methods for CVE-2024-11393

Indicators of Compromise

  • Unexpected network connections originating from Python processes running Transformers
  • Anomalous file system activity during model loading operations
  • Unusual child processes spawned by applications using Hugging Face Transformers
  • Suspicious model files with unexpected embedded objects or payloads

Detection Strategies

  • Monitor for process execution chains where Python processes spawn unexpected child processes during model loading
  • Implement file integrity monitoring for model files stored locally
  • Use application-level logging to track model file sources and loading operations
  • Deploy endpoint detection rules for known deserialization exploit patterns

Monitoring Recommendations

  • Enable verbose logging for Hugging Face Transformers model loading operations
  • Monitor network traffic for downloads of model files from untrusted sources
  • Implement alerting for unexpected code execution patterns during ML pipeline operations
  • Review audit logs for model file access from unusual locations or at unusual times

How to Mitigate CVE-2024-11393

Immediate Actions Required

  • Only load model files from trusted and verified sources such as the official Hugging Face Hub
  • Implement strict access controls on model file directories and repositories
  • Review and audit all model files currently in use within your environment
  • Consider running model loading operations in isolated sandbox environments

Patch Information

Organizations should monitor the Hugging Face Transformers project for security updates addressing this vulnerability. The Zero Day Initiative advisory ZDI-24-1514 provides additional details on the vulnerability disclosure. Users should update to the latest version of Hugging Face Transformers once a patch becomes available.

Workarounds

  • Avoid loading model files from untrusted or unverified sources
  • Implement network segmentation to isolate ML workloads from sensitive systems
  • Use containerization or virtual environments to limit the impact of potential code execution
  • Deploy SentinelOne endpoint protection to detect and prevent exploitation attempts
bash
# Configuration example - Restrict model loading to trusted sources only
# Set environment variable to use only local cache and prevent automatic downloads
export HF_HUB_OFFLINE=1

# Alternatively, configure trusted endpoints only
export HF_ENDPOINT="https://huggingface.co"

# Verify model checksums before loading
# Use Hugging Face Hub's built-in verification
python -c "from huggingface_hub import scan_cache_dir; print(scan_cache_dir())"

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 Probability46.14%

  • 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-1514
  • Related CVEs
  • CVE-2024-11392: Huggingface Transformers RCE Vulnerability

  • CVE-2024-11394: 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