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
    • 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-31249

CVE-2026-31249: CosyVoice RCE Vulnerability

CVE-2026-31249 is a remote code execution flaw in CosyVoice caused by insecure deserialization in its data processing tool. Attackers can execute arbitrary code by providing malicious files. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 18, 2026

CVE-2026-31249 Overview

CVE-2026-31249 is an insecure deserialization vulnerability [CWE-502] in CosyVoice, an open-source speech generation toolkit from FunAudioLLM. The flaw exists in the make_parquet_list.py data processing script through commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e. The script calls torch.load() on PyTorch .pt files without setting the weights_only=True security parameter. This permits Python's pickle module to deserialize arbitrary objects from attacker-controlled files. Processing a malicious .pt file results in arbitrary code execution on the victim's system.

Critical Impact

Attackers who supply malicious .pt files within a CosyVoice data directory can achieve arbitrary code execution when a victim runs make_parquet_list.py against that directory.

Affected Products

  • CosyVoice (FunAudioLLM) through commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e dated 2025-10-21
  • The make_parquet_list.py data processing tool
  • Any downstream project bundling vulnerable CosyVoice training pipelines

Discovery Timeline

  • 2026-05-11 - CVE-2026-31249 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-31249

Vulnerability Analysis

CosyVoice ships a preprocessing utility, make_parquet_list.py, that aggregates utterance embeddings, speaker embeddings, and speech tokens into Parquet datasets. The script loads each embedding artifact from disk using torch.load(). PyTorch's loader delegates to Python's pickle module by default, which executes arbitrary callables encoded in the serialized stream through the __reduce__ protocol.

Because the script does not pass weights_only=True, any .pt file inside the target directory becomes an execution primitive. An attacker who can place or substitute files in a dataset directory controls the deserialization payload. The vulnerability requires no authentication and no user interaction beyond the standard preprocessing workflow.

Root Cause

The root cause is unsafe use of torch.load() on untrusted input. PyTorch documents the weights_only parameter specifically to restrict deserialization to tensor data and prevent pickle gadgets from running. The vulnerable script omits this parameter, so the loader defaults to full pickle semantics for every .pt artifact it processes.

Attack Vector

The attack vector is delivery of a malicious .pt file into a directory consumed by make_parquet_list.py. Likely delivery channels include shared dataset archives, community-published speaker embeddings, fine-tuning data hosted on model hubs, and supply chain compromise of training corpora. When the victim runs the preprocessing tool, the embedded __reduce__ payload executes with the privileges of the invoking user.

No verified public exploit code is referenced in the advisory. The vulnerability mechanism mirrors the well-documented pickle.loads() gadget pattern: a serialized object whose __reduce__ method returns a callable such as os.system together with attacker-supplied arguments. Refer to the CosyVoice repository and the CVE-2026-31249 analysis for additional technical context.

Detection Methods for CVE-2026-31249

Indicators of Compromise

  • Unexpected child processes spawned by Python interpreters running make_parquet_list.py or other CosyVoice scripts.
  • .pt files in dataset directories whose size, hash, or provenance does not match the upstream source.
  • Outbound network connections initiated from training hosts during dataset preprocessing.
  • New files or scheduled tasks created by the user account that executed the preprocessing pipeline.

Detection Strategies

  • Hunt for invocations of torch.load without weights_only=True across internal ML codebases using static analysis or grep-based audits.
  • Monitor process lineage on ML training hosts: a python process executing make_parquet_list.py should not spawn shells, package managers, or networking utilities.
  • Validate cryptographic hashes of .pt files against a trusted manifest before preprocessing runs.

Monitoring Recommendations

  • Enable command-line and process-creation logging on workstations and GPU servers used for model training.
  • Alert on file writes to ~/.ssh, cron locations, and persistence paths originating from Python ML workloads.
  • Capture egress telemetry from data science environments to detect unexpected callbacks from deserialization payloads.

How to Mitigate CVE-2026-31249

Immediate Actions Required

  • Stop running make_parquet_list.py against any dataset whose .pt files are not fully trusted and verified.
  • Audit existing CosyVoice clones for the vulnerable commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e and quarantine derived artifacts.
  • Patch local copies by passing weights_only=True to every torch.load() call in CosyVoice preprocessing scripts.
  • Rotate credentials and inspect hosts that have processed third-party .pt files since the affected commit was deployed.

Patch Information

No official vendor advisory or fixed release is referenced in the NVD entry at publication. Maintainers and operators should apply the upstream guidance for torch.load(), which is to set weights_only=True when loading checkpoints from untrusted sources, and to track the CosyVoice repository for a security release.

Workarounds

  • Modify make_parquet_list.py to invoke torch.load(path, weights_only=True, map_location='cpu') for embeddings and tokens.
  • Execute preprocessing inside an isolated container or sandbox with no outbound network access and a read-only filesystem outside the working directory.
  • Verify dataset integrity by enforcing signed manifests and SHA-256 checksums before any .pt file is consumed.
  • Restrict write access to dataset directories so only trusted automation, not interactive users or external pipelines, can place .pt artifacts.
bash
# Configuration example: safer invocation pattern for torch.load
# Replace unsafe calls in make_parquet_list.py
#   data = torch.load(path)
# with:
#   data = torch.load(path, weights_only=True, map_location='cpu')

# Verify dataset integrity before preprocessing
find ./data -name '*.pt' -print0 | xargs -0 sha256sum > current.sha256
diff trusted.sha256 current.sha256 || { echo 'Dataset integrity check failed'; exit 1; }

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 Score7.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-502
  • Technical References
  • GitHub PoC Repository

  • Notion CVE Analysis
  • Related CVEs
  • CVE-2026-31214: ml-engineering torch-checkpoint RCE Flaw

  • CVE-2026-24747: PyTorch weights_only RCE Vulnerability

  • CVE-2024-48063: PyTorch RemoteModule RCE Vulnerability

  • CVE-2025-2148: PyTorch Memory Corruption RCE Vulnerability
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