A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-31222

CVE-2026-31222: Snorkel RCE Vulnerability

CVE-2026-31222 is a remote code execution vulnerability in Snorkel library caused by insecure deserialization in the Trainer.load() method. This article covers the technical details, affected versions, and mitigation strategies.

Published: May 17, 2026

CVE-2026-31222 Overview

CVE-2026-31222 is an insecure deserialization vulnerability [CWE-502] in the Snorkel library through version v0.10.0. The flaw resides in the Trainer.load() method of the Trainer class, which loads model checkpoint files using torch.load() without the weights_only=True parameter. This default behavior permits deserialization of arbitrary Python objects through the Pickle module. A remote attacker who supplies a maliciously crafted model file can achieve arbitrary code execution on the victim's system when the file is loaded.

Critical Impact

Loading an attacker-supplied model checkpoint triggers arbitrary code execution under the privileges of the user running the Snorkel training pipeline.

Affected Products

  • Snorkel library versions up to and including v0.10.0
  • Python machine learning pipelines that invoke Trainer.load() on untrusted checkpoint files
  • Downstream applications that bundle the snorkel-team/snorkel package

Discovery Timeline

  • 2026-05-12 - CVE-2026-31222 published to NVD
  • 2026-05-15 - Last updated in NVD database

Technical Details for CVE-2026-31222

Vulnerability Analysis

The Snorkel library provides programmatic data labeling and weak supervision tooling for machine learning workflows. Its Trainer class persists model state through checkpoint files and restores that state via Trainer.load(). The load implementation delegates to PyTorch's torch.load() without setting weights_only=True, so the function deserializes Pickle streams as full Python object graphs.

Pickle deserialization in Python executes __reduce__ methods embedded in the serialized payload. An attacker who controls the contents of a checkpoint file can embed a __reduce__ directive that calls os.system, subprocess.Popen, or any importable callable. The result is arbitrary code execution at parse time, before any model state is validated.

Successful exploitation compromises confidentiality, integrity, and availability of the host running the training or inference job. User interaction is required because a victim must invoke Trainer.load() on the malicious file.

Root Cause

The root cause is the use of torch.load() with its insecure default. PyTorch's documentation has explicitly warned that loading Pickle data is equivalent to executing arbitrary code, and the weights_only=True argument was introduced to restrict deserialization to tensor primitives. Snorkel's Trainer.load() does not pass this flag and does not perform any signature or origin validation on the input file.

Attack Vector

Exploitation requires an attacker to deliver a crafted checkpoint file and convince a user to load it. Delivery channels include shared model registries, public model hubs, supply chain repositories, email attachments, and collaborative notebook environments. Once Trainer.load("malicious.pt") runs, the embedded Pickle reducer executes immediately under the calling process's permissions.

No verified public proof-of-concept exploit is available at the time of writing. The vulnerability pattern follows the well-documented Pickle reducer technique used against other PyTorch-based projects. See the Snorkel project repository for source-level context.

Detection Methods for CVE-2026-31222

Indicators of Compromise

  • Unexpected child processes spawned by Python interpreters running Snorkel training scripts, such as sh, bash, powershell.exe, or curl.
  • Checkpoint files (.pt, .pth, .pkl) originating from untrusted sources or recently downloaded to model directories.
  • Outbound network connections from ML training hosts to unfamiliar domains immediately after a checkpoint load operation.

Detection Strategies

  • Scan Python codebases for calls to Trainer.load() and torch.load() that omit weights_only=True.
  • Inspect Pickle files with tooling such as pickletools to flag GLOBAL opcodes referencing os, subprocess, builtins, or posix modules.
  • Use endpoint behavioral analytics to correlate Python process activity with shell, network, and filesystem operations that deviate from normal training behavior.

Monitoring Recommendations

  • Log and alert on process trees where python or jupyter is the parent of interactive shells or remote download utilities.
  • Track checkpoint file provenance through hash inventories and signed manifests in model registries.
  • Forward ML host telemetry to a centralized data lake for cross-correlation of file-load events with subsequent process and network behavior.

How to Mitigate CVE-2026-31222

Immediate Actions Required

  • Audit all uses of snorkel.classification.Trainer.load() and replace them with safe loading routines until an upstream patch is applied.
  • Treat any existing checkpoint files from external sources as untrusted and quarantine them pending verification.
  • Restrict who can publish to internal model registries and require signed artifacts for checkpoint distribution.

Patch Information

No fixed version is referenced in the published NVD entry at the time of writing. Monitor the Snorkel project repository for a release that enforces weights_only=True or replaces Pickle-based serialization. Until a patched release is available, apply the workarounds below.

Workarounds

  • Wrap or monkey-patch Trainer.load() to call torch.load(path, weights_only=True) and reject files that fail to load under that constraint.
  • Run training and inference jobs in isolated containers or sandboxes with no outbound network access and minimal filesystem permissions.
  • Verify checkpoint integrity with cryptographic signatures or hashes generated from a trusted publisher before loading.
bash
# Configuration example: enforce weights_only loading in a wrapper module
# safe_loader.py
python - <<'EOF'
import torch

def safe_load(path):
    return torch.load(path, weights_only=True, map_location="cpu")
EOF

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSnorkel

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.26%

  • 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
  • GitHub Snorkel Project

  • Notion CVE-2026-31222 Details
  • Related CVEs
  • CVE-2026-31223: Snorkel Insecure Deserialization Vulnerability

  • CVE-2026-31224: Snorkel RCE Vulnerability via Deserialization
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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