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-2025-10157

CVE-2025-10157: Picklescan Auth Bypass Vulnerability

CVE-2025-10157 is an authentication bypass flaw in mmaitre314 Picklescan that allows attackers to bypass unsafe globals checks via submodules. This article covers technical details, affected versions, impact, and mitigation.

Published: April 21, 2026

CVE-2025-10157 Overview

A Protection Mechanism Failure vulnerability exists in mmaitre314 picklescan versions up to and including 0.0.30 that allows a remote attacker to bypass the unsafe globals check. This security flaw stems from the scanner performing an exact match for module names, which enables malicious payloads to be loaded via submodules of dangerous packages (e.g., asyncio.unix_events instead of asyncio).

When a file incorrectly considered safe by the scanner is subsequently loaded, it can lead to the execution of arbitrary malicious code. This represents a significant security risk for any application relying on picklescan to validate Python pickle files before loading them.

Critical Impact

Remote attackers can bypass picklescan's security controls and execute arbitrary code by crafting malicious pickle files that use submodule paths to evade detection.

Affected Products

  • mmaitre314 picklescan versions ≤ 0.0.30

Discovery Timeline

  • September 17, 2025 - CVE-2025-10157 published to NVD
  • November 13, 2025 - Last updated in NVD database

Technical Details for CVE-2025-10157

Vulnerability Analysis

This vulnerability is classified as CWE-693 (Protection Mechanism Failure), which occurs when a security mechanism fails to provide adequate protection against threats it was designed to mitigate. In this case, picklescan is designed to identify and block dangerous Python pickle files that could execute malicious code when deserialized.

The fundamental issue lies in how picklescan validates module names during its security scanning process. The scanner uses exact string matching to compare module names against a blocklist of known dangerous modules. However, Python's import system allows code execution through submodules that share a common parent with blocked modules but have different fully-qualified names.

For example, if asyncio is blocked as a dangerous module, an attacker can bypass this protection by importing asyncio.unix_events or other submodules instead. The scanner treats these as distinct, unrelated modules because the exact string comparison fails to match.

Root Cause

The root cause is an incomplete implementation of module name matching in the picklescan security scanner. The exact match approach used in the scanner.py module does not account for Python's hierarchical module namespace, where blocking a parent module should logically also block all its child submodules to maintain security guarantees.

The vulnerable code path performs string comparison without considering module hierarchy, treating asyncio and asyncio.unix_events as completely separate entries rather than recognizing their parent-child relationship.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a malicious pickle file that references submodules of blocked dangerous packages
  2. Distributing the malicious pickle file through any vector that relies on picklescan for validation (e.g., model repositories, file uploads)
  3. When the file passes picklescan's safety check and is subsequently loaded by the application, the malicious payload executes

A proof-of-concept malicious pickle file has been published on Hugging Face demonstrating exploitation using the asyncio.unix_events submodule to bypass detection.

The attack leverages Python's pickle deserialization, which by design can instantiate arbitrary objects and execute code. Picklescan was created specifically to mitigate this risk, making this bypass particularly severe.

Detection Methods for CVE-2025-10157

Indicators of Compromise

  • Pickle files containing references to submodules of known dangerous packages (e.g., asyncio.unix_events, subprocess.Popen)
  • Unexpected process execution or network connections following pickle file loading
  • Log entries showing pickle files passing security scans while containing suspicious module references
  • Presence of pickle files with unusual or deeply nested module import paths

Detection Strategies

  • Implement static analysis of pickle files to detect submodule references that share parent modules with blocked packages
  • Monitor pickle deserialization events for module loading patterns that include submodules of restricted namespaces
  • Deploy file integrity monitoring for applications that process untrusted pickle files
  • Review picklescan scan results for files with unusual import patterns

Monitoring Recommendations

  • Enable verbose logging in picklescan to capture detailed module reference information
  • Implement alerting for any pickle file processing in sensitive environments
  • Monitor system calls and process creation following pickle file loading operations
  • Track network connections initiated shortly after pickle deserialization events

How to Mitigate CVE-2025-10157

Immediate Actions Required

  • Upgrade picklescan to a version newer than 0.0.30 that includes the security fix
  • Review any pickle files that were previously scanned and approved with the vulnerable version
  • Consider re-scanning existing pickle files with the patched version before loading
  • Implement defense-in-depth controls around pickle file processing

Patch Information

The vulnerability has been addressed by the maintainer. Users should update to the latest version of picklescan that includes the fix for this submodule bypass issue. Details are available in the GitHub Security Advisory.

The fix modifies the module matching logic in scanner.py to properly account for submodule hierarchies when checking against the blocklist of dangerous modules.

Workarounds

  • Avoid loading untrusted pickle files entirely until the patch can be applied
  • Implement additional validation layers that check for submodule patterns of blocked modules
  • Use alternative serialization formats (JSON, Protocol Buffers) that do not support arbitrary code execution
  • Run pickle deserialization in isolated sandbox environments with restricted permissions
  • Manually audit pickle files for suspicious module references before allowing them through security controls
bash
# Upgrade picklescan to the latest patched version
pip install --upgrade picklescan

# Verify installed version is newer than 0.0.30
pip show picklescan | grep Version

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechMmaitre314 Picklescan

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-693
  • Technical References
  • GitHub PoC Script

  • Hugging Face model file
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-1945: Mmaitre314 Picklescan RCE Vulnerability

  • CVE-2025-1889: Picklescan Information Disclosure Flaw

  • CVE-2025-1716: Mmaitre314 Picklescan RCE Vulnerability

  • CVE-2025-10155: Mmaitre314 Picklescan 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