Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-58367

CVE-2025-58367: DeepDiff RCE Vulnerability

CVE-2025-58367 is a remote code execution vulnerability in DeepDiff that exploits class pollution and insecure Pickle deserialization to execute arbitrary code. This article covers technical details, affected versions, and patches.

Published: March 11, 2026

CVE-2025-58367 Overview

CVE-2025-58367 is a critical class pollution vulnerability in DeepDiff, a Python library used for deep difference and search operations on Python data structures. The vulnerability exists in versions 5.0.0 through 8.6.0 and can be exploited through the Delta class constructor. When combined with an available gadget in DeltaDiff, this vulnerability can lead to Denial of Service and Remote Code Execution via insecure Pickle deserialization.

Critical Impact

This vulnerability allows attackers to modify deepdiff.serialization.SAFE_TO_IMPORT to permit dangerous classes such as posix.system, enabling arbitrary Python code execution through insecure Pickle deserialization when user-controlled input is passed to the Delta class.

Affected Products

  • DeepDiff versions 5.0.0 through 8.6.0
  • Python applications utilizing vulnerable DeepDiff versions with user-controlled Delta input
  • Systems processing untrusted serialized data through DeepDiff

Discovery Timeline

  • 2025-09-05 - CVE CVE-2025-58367 published to NVD
  • 2025-09-08 - Last updated in NVD database

Technical Details for CVE-2025-58367

Vulnerability Analysis

This vulnerability represents a class pollution attack chain that ultimately leads to Remote Code Execution. The flaw resides in how the Delta class constructor handles input, allowing attackers to manipulate internal class attributes. The exploitation chain involves two key components: first, polluting the deepdiff.serialization.SAFE_TO_IMPORT allowlist to include dangerous system classes, and second, leveraging insecure Pickle deserialization to execute arbitrary code.

The attack is particularly dangerous because Pickle deserialization in Python inherently executes code during the unpickling process. By modifying the SAFE_TO_IMPORT list, an attacker bypasses the security controls designed to prevent dangerous classes from being deserialized. Classes like posix.system can then be instantiated with arbitrary command arguments, granting full system command execution.

Root Cause

The root cause is CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes. The Delta class constructor fails to properly sanitize or validate input parameters, allowing malicious actors to modify class-level attributes that control serialization security. This class pollution vulnerability, combined with the permissive nature of Python's Pickle deserialization, creates a critical attack surface. The SAFE_TO_IMPORT mechanism was designed as a security control, but its mutable nature through polluted input negates this protection entirely.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can craft malicious input that, when processed by the Delta class constructor, pollutes the SAFE_TO_IMPORT attribute to include dangerous callable objects. The attack proceeds as follows:

  1. The attacker sends crafted input to an application endpoint that passes data to DeepDiff's Delta class
  2. The class pollution gadget modifies deepdiff.serialization.SAFE_TO_IMPORT to whitelist dangerous classes like posix.system
  3. A subsequent Pickle deserialization operation instantiates the dangerous class
  4. Arbitrary Python code executes with the privileges of the application process

This vulnerability is exploitable in any application that accepts user-controlled input and passes it to the Delta class. The technical details and proof-of-concept information are available in the GitHub Security Advisory GHSA-mw26-5g2v-hqw3.

Detection Methods for CVE-2025-58367

Indicators of Compromise

  • Unexpected modifications to deepdiff.serialization.SAFE_TO_IMPORT at runtime
  • Pickle deserialization events involving system command classes such as posix.system or os.system
  • Unusual subprocess spawning from Python processes running DeepDiff-dependent applications
  • Error logs indicating failed deserialization of unexpected class types

Detection Strategies

  • Monitor Python application logs for unusual Delta class instantiation patterns with complex nested objects
  • Implement runtime integrity checking for the SAFE_TO_IMPORT module attribute
  • Deploy application-level intrusion detection to flag suspicious Pickle deserialization attempts
  • Use static code analysis tools to identify DeepDiff version usage and potential vulnerable code paths

Monitoring Recommendations

  • Enable verbose logging for applications utilizing DeepDiff to capture Delta class operations
  • Implement process monitoring to detect unexpected child processes spawned from Python applications
  • Monitor network traffic for serialized Python objects being sent to vulnerable endpoints
  • Configure SentinelOne Singularity platform to detect behavioral indicators of Pickle-based code execution

How to Mitigate CVE-2025-58367

Immediate Actions Required

  • Upgrade DeepDiff to version 8.6.1 or later immediately
  • Audit all applications using DeepDiff to identify user-controlled input paths to the Delta class
  • Implement input validation and sanitization for any data passed to DeepDiff Delta operations
  • Consider temporarily disabling Delta functionality if upgrade is not immediately possible

Patch Information

The vulnerability has been fixed in DeepDiff version 8.6.1. The security patch addresses the class pollution vulnerability in the Delta class constructor by implementing proper input validation and protecting the SAFE_TO_IMPORT attribute from unauthorized modification. The fix is available via the GitHub Release Version 8.6.1 and the specific code changes can be reviewed in the GitHub Commit.

Workarounds

  • Avoid passing untrusted or user-controlled input to the Delta class constructor
  • Implement application-level sandboxing for processes utilizing DeepDiff
  • Deploy network segmentation to limit the impact of potential code execution
  • Use a web application firewall (WAF) to filter potentially malicious serialized payloads
bash
# Upgrade DeepDiff to patched version
pip install --upgrade deepdiff>=8.6.1

# Verify installed version
pip show deepdiff | grep Version

# For requirements.txt, update the dependency
# deepdiff>=8.6.1

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDeepdiff

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability1.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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-915
  • Technical References
  • GitHub Commit Update

  • GitHub Release Version 8.6.1

  • GitHub Security Advisory GHSA-mw26-5g2v-hqw3
  • Related CVEs
  • CVE-2026-33155: DeepDiff Pickle DoS Vulnerability
Default Legacy - Prefooter | 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