A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-2026-24747

CVE-2026-24747: PyTorch weights_only RCE Vulnerability

CVE-2026-24747 is a remote code execution vulnerability in PyTorch's weights_only unpickler that allows attackers to execute arbitrary code via malicious checkpoint files. This article covers technical details, affected versions, and mitigations.

Published: January 30, 2026

CVE-2026-24747 Overview

A critical vulnerability has been identified in PyTorch's weights_only unpickler that allows attackers to craft malicious checkpoint files (.pth) capable of corrupting memory and potentially achieving arbitrary code execution. When a victim loads a specially crafted checkpoint file using torch.load(..., weights_only=True), the vulnerable deserialization mechanism can be exploited to execute arbitrary code on the target system.

This vulnerability is particularly concerning in machine learning workflows where model checkpoints are frequently shared between researchers, downloaded from public repositories, or loaded from untrusted sources. The weights_only=True parameter was specifically designed as a security measure to prevent arbitrary code execution during model loading, making this bypass especially impactful.

Critical Impact

Attackers can achieve arbitrary code execution by convincing users to load malicious PyTorch checkpoint files, bypassing the security protections of the weights_only unpickler.

Affected Products

  • PyTorch versions prior to 2.10.0
  • Applications using torch.load() with weights_only=True parameter
  • Machine learning pipelines that load untrusted model checkpoints

Discovery Timeline

  • 2026-01-27 - CVE CVE-2026-24747 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2026-24747

Vulnerability Analysis

This vulnerability falls under CWE-94 (Improper Control of Generation of Code - Code Injection) and affects PyTorch's model serialization and deserialization functionality. The core issue resides in the weights_only unpickler implementation, which was intended to provide a safer alternative to standard pickle deserialization by restricting the types of objects that can be loaded.

The weights_only mode was introduced as a security feature to mitigate the well-known risks of Python's pickle module, which can execute arbitrary code during deserialization. However, a flaw in the implementation allows attackers to craft checkpoint files that bypass these restrictions, leading to memory corruption that can be leveraged for arbitrary code execution.

The vulnerability requires user interaction—specifically, the victim must load a malicious .pth file. However, this is a common operation in machine learning workflows, particularly when downloading pre-trained models from public sources like Hugging Face, GitHub repositories, or model zoos.

Root Cause

The root cause of this vulnerability lies in improper validation and handling within PyTorch's restricted unpickler implementation. The weights_only unpickler fails to properly sanitize certain pickle opcodes or object types during deserialization, allowing specially constructed payloads to corrupt memory structures. This memory corruption can then be weaponized to achieve code execution by manipulating program control flow or overwriting critical data structures.

Attack Vector

The attack vector is network-based, requiring an attacker to distribute a malicious checkpoint file that a victim subsequently downloads and loads. Attack scenarios include:

  1. Supply Chain Attacks: Compromising model repositories or injecting malicious models into public collections
  2. Social Engineering: Sharing malicious checkpoint files through forums, emails, or collaboration platforms
  3. Man-in-the-Middle: Intercepting model downloads and replacing legitimate checkpoints with malicious versions

The exploitation flow involves creating a specially crafted .pth file containing pickle opcodes that trigger the memory corruption vulnerability when processed by the weights_only unpickler. When a user loads this file using torch.load(path, weights_only=True), the malicious payload executes during the deserialization process.

For detailed technical information about the vulnerability mechanism and exploitation techniques, refer to the GitHub Security Advisory GHSA-63cw-57p8-fm3p and the related GitHub Issue #163105.

Detection Methods for CVE-2026-24747

Indicators of Compromise

  • Unexpected process spawning or network connections originating from Python/PyTorch processes during model loading operations
  • Anomalous system calls or file system access patterns when loading .pth checkpoint files
  • Presence of suspicious or unfamiliar .pth files in model directories, especially those with recent modification timestamps
  • Memory corruption signatures or segmentation faults during torch.load() operations

Detection Strategies

  • Implement file integrity monitoring on directories containing model checkpoints to detect unauthorized modifications
  • Monitor PyTorch model loading operations for unusual execution patterns using endpoint detection and response (EDR) solutions
  • Deploy network monitoring to identify downloads of checkpoint files from untrusted or suspicious sources
  • Use application-level logging to track all torch.load() calls and their source file paths

Monitoring Recommendations

  • Enable verbose logging in machine learning pipelines to capture model loading events with full file paths and source origins
  • Implement runtime monitoring for PyTorch applications that alerts on unexpected child process creation or network activity
  • Establish baseline behavior for model loading operations and alert on deviations
  • Monitor for attempts to load checkpoint files from temporary directories or unusual locations

How to Mitigate CVE-2026-24747

Immediate Actions Required

  • Upgrade PyTorch to version 2.10.0 or later immediately across all environments
  • Audit all model checkpoints currently in use and verify their integrity against known-good hashes
  • Implement strict controls on model checkpoint sources, allowing only downloads from verified and trusted repositories
  • Review and restrict file system permissions for directories containing model files

Patch Information

PyTorch version 2.10.0 addresses this vulnerability with a fix to the weights_only unpickler implementation. The fix is available in the PyTorch v2.10.0 release. The specific commit addressing this issue can be found in the PyTorch commit 954dc5183ee9205cbe79876ad05dd2d9ae752139.

Organizations should prioritize upgrading to the patched version, especially in environments that process model checkpoints from external sources or untrusted parties.

Workarounds

  • Avoid loading checkpoint files from untrusted or unverified sources until the patch can be applied
  • Implement cryptographic verification (hash checking) for all checkpoint files before loading
  • Use isolated environments (containers, sandboxes) when loading checkpoint files from external sources to limit potential impact
  • Consider implementing additional deserialization restrictions or custom unpickler overrides as a defense-in-depth measure
bash
# Upgrade PyTorch to patched version
pip install --upgrade torch>=2.10.0

# Verify PyTorch version after upgrade
python -c "import torch; print(f'PyTorch version: {torch.__version__}')"

# Verify checkpoint file integrity before loading (example)
sha256sum model_checkpoint.pth
# Compare output against known-good hash from trusted source

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPytorch

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.02%

  • 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-94
  • Technical References
  • GitHub PyTorch Commit

  • GitHub PyTorch Issue

  • GitHub PyTorch Release v2.10.0

  • GitHub Security Advisory GHSA-63cw-57p8-fm3p
  • Related CVEs
  • CVE-2024-48063: PyTorch RemoteModule RCE Vulnerability

  • CVE-2025-2148: PyTorch Memory Corruption RCE Vulnerability

  • CVE-2025-32434: PyTorch torch.load RCE Vulnerability

  • CVE-2024-31580: PyTorch Heap Buffer Overflow DoS 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
  • English
  • 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