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-2024-9701

CVE-2024-9701: Kedro ShelveStore RCE Vulnerability

CVE-2024-9701 is a remote code execution vulnerability in Kedro ShelveStore class that allows attackers to execute arbitrary Python code through malicious payload deserialization. This article covers technical details, impact, and mitigation.

Published: April 15, 2026

CVE-2024-9701 Overview

A Remote Code Execution (RCE) vulnerability has been identified in the Kedro ShelveStore class (version 0.19.8). This vulnerability allows an attacker to execute arbitrary Python code via deserialization of malicious payloads, potentially leading to a full system compromise. The ShelveStore class uses Python's shelve module to manage session data, which relies on pickle for serialization. Crafting a malicious payload and storing it in the shelve file can lead to RCE when the payload is deserialized.

Critical Impact

Attackers can achieve complete system compromise through arbitrary Python code execution by exploiting insecure deserialization in the Kedro session management component.

Affected Products

  • Kedro version 0.19.8
  • Kedro versions using ShelveStore class for session management
  • Applications implementing kedro.framework.session.shelvestore.ShelveStore

Discovery Timeline

  • 2025-03-20 - CVE CVE-2024-9701 published to NVD
  • 2025-03-20 - Last updated in NVD database

Technical Details for CVE-2024-9701

Vulnerability Analysis

This vulnerability is classified as CWE-502 (Deserialization of Untrusted Data). The core issue stems from Kedro's ShelveStore class using Python's shelve module for persisting session data. The shelve module internally utilizes Python's pickle module for object serialization and deserialization, which is inherently unsafe when handling untrusted data.

When a user or attacker can influence the contents of the shelve file, they can craft malicious serialized objects that execute arbitrary code upon deserialization. This is particularly dangerous in scenarios where session data may be accessible through shared storage, application misconfigurations, or secondary vulnerabilities that allow file manipulation.

The vulnerability requires network access with no authentication or user interaction needed for exploitation, making it highly dangerous in exposed environments. Successful exploitation can result in complete compromise of confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause of this vulnerability lies in the unsafe use of Python's pickle module through the shelve interface. The ShelveStore class was designed to persist Kedro session data to disk but did not account for the well-documented security risks of deserializing untrusted pickle data.

The vulnerable code path occurs in the read() method which opens the shelve file with shelve.open() (noted as # noqa: S301 indicating the security concern was known but suppressed). When this method deserializes data from disk, any malicious pickle payload stored in the file will be executed.

Attack Vector

The attack vector is network-based and exploits the insecure deserialization mechanism in the ShelveStore class. An attacker who can write to the shelve file location (through misconfigured permissions, directory traversal, or other vulnerabilities) can plant a malicious serialized payload. When Kedro subsequently reads session data, the malicious payload executes arbitrary Python code with the privileges of the Kedro process.

The attack requires:

  1. Ability to write to the shelve file location used by ShelveStore
  2. Kedro application to subsequently read the session data via the read() method
  3. The malicious pickle payload to be crafted for the target Python environment

The following code shows the vulnerable ShelveStore implementation that was removed in the security patch:

python
class ShelveStore(BaseSessionStore):
    """Stores the session data on disk using `shelve` package.
    This is an example of how to persist data on disk."""

    _lock = Lock()

    @property
    def _location(self) -> Path:
        return Path(self._path).expanduser().resolve() / self._session_id / "store"

    def read(self) -> dict[str, Any]:
        """Read the data from disk using `shelve` package."""
        data: dict[str, Any] = {}
        try:
            with shelve.open(str(self._location), flag="r") as _sh:  # noqa: S301

Source: GitHub Commit

Detection Methods for CVE-2024-9701

Indicators of Compromise

  • Unexpected or modified shelve files (.db, .dir, .bak extensions) in Kedro session storage directories
  • Unusual Python process execution originating from Kedro application contexts
  • Presence of pickled objects containing unexpected class types or module references in session files
  • Anomalous network connections or child processes spawned by the Kedro application

Detection Strategies

  • Monitor file system activity in Kedro session storage directories for unauthorized write operations
  • Implement application-level logging to track session store read/write operations
  • Deploy endpoint detection solutions capable of identifying pickle deserialization attacks
  • Use integrity monitoring on shelve files to detect unauthorized modifications

Monitoring Recommendations

  • Enable verbose logging in Kedro applications to capture session management activities
  • Implement file integrity monitoring (FIM) on directories where ShelveStore persists data
  • Configure security tools to alert on suspicious Python code execution patterns
  • Monitor for unexpected imports of dangerous modules (os, subprocess, socket) during deserialization

How to Mitigate CVE-2024-9701

Immediate Actions Required

  • Upgrade to a patched version of Kedro that removes the vulnerable ShelveStore class
  • Migrate existing applications to use alternative session storage mechanisms
  • Restrict file system permissions on any existing shelve storage directories
  • Audit any existing shelve files for potential malicious payloads before processing

Patch Information

The Kedro maintainers addressed this vulnerability by completely removing the ShelveStore class from the codebase. The security patch is available in commit d79fa51de55ac0ccb58cce1a482df1b445f0fe7c. Organizations using the ShelveStore class should upgrade to a version that includes this fix and migrate to a secure session storage alternative.

For additional details, see the GitHub Commit Overview and the Huntr Bounty Listing.

Workarounds

  • Implement custom session storage using secure serialization formats such as JSON instead of pickle
  • Configure strict file system permissions to prevent unauthorized access to session data directories
  • Deploy application sandboxing to limit the impact of potential code execution
  • Use signed serialized data with HMAC verification to detect tampering before deserialization
bash
# Example: Restrict permissions on Kedro session storage directory
chmod 700 ~/.kedro/sessions/
chown $(whoami):$(whoami) ~/.kedro/sessions/

# Verify no unexpected shelve files exist
find ~/.kedro -name "*.db" -o -name "*.dir" -o -name "*.bak" 2>/dev/null

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechKedro

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • GitHub Commit Overview

  • Huntr Bounty Listing
  • Related CVEs
  • CVE-2026-35171: Kedro RCE Vulnerability

  • CVE-2026-35167: Kedro Path Traversal 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