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-2026-34955

CVE-2026-34955: PraisonAI Sandbox Escape RCE Vulnerability

CVE-2026-34955 is a sandbox escape RCE vulnerability in PraisonAI's SubprocessSandbox that allows attackers to bypass security restrictions and execute arbitrary commands. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 10, 2026

CVE-2026-34955 Overview

A critical command injection vulnerability exists in PraisonAI, a multi-agent teams system, prior to version 4.5.97. The SubprocessSandbox component in all security modes (BASIC, STRICT, NETWORK_ISOLATED) is vulnerable to sandbox escape due to an incomplete blocklist implementation. The sandbox calls subprocess.run() with shell=True and relies solely on string-pattern matching to block dangerous commands, but fails to include sh or bash as standalone executables in its blocklist. This allows attackers to trivially escape the sandbox in STRICT mode by executing commands via sh -c '<command>'.

Critical Impact

Local attackers with low privileges can escape the sandbox and execute arbitrary commands with elevated privileges, potentially compromising confidentiality, integrity, and availability of the affected system.

Affected Products

  • PraisonAI versions prior to 4.5.97
  • SubprocessSandbox component (BASIC mode)
  • SubprocessSandbox component (STRICT mode)
  • SubprocessSandbox component (NETWORK_ISOLATED mode)

Discovery Timeline

  • April 4, 2026 - CVE CVE-2026-34955 published to NVD
  • April 7, 2026 - Last updated in NVD database

Technical Details for CVE-2026-34955

Vulnerability Analysis

This vulnerability is classified as CWE-78: Improper Neutralization of Special Elements used in an OS Command (OS Command Injection). The flaw stems from a fundamental design weakness in the SubprocessSandbox security mechanism.

The SubprocessSandbox component was designed to provide isolated execution environments at varying security levels. However, the implementation relies on a blocklist approach to filter dangerous commands before executing them via Python's subprocess.run() function with shell=True. This approach is inherently flawed as it attempts to enumerate all possible dangerous commands rather than using an allowlist of permitted operations.

The critical oversight is that while the blocklist may include common dangerous commands, it fails to include shell interpreters like sh and bash as standalone executables. An attacker can leverage these interpreters to execute arbitrary commands that would otherwise be blocked.

Root Cause

The root cause is twofold:

  1. Insecure subprocess invocation: Using subprocess.run() with shell=True enables shell interpretation of the command string, opening the door to shell metacharacter abuse and command chaining.

  2. Incomplete blocklist: The string-pattern matching blocklist fails to account for shell interpreters (sh, bash) as standalone executables. This is a common pitfall of blocklist-based security approaches, which can never be comprehensive against creative attackers.

The combination of these issues means that even in STRICT mode, the sandbox provides a false sense of security while being trivially bypassable.

Attack Vector

The attack vector requires local access with low privileges. An attacker interacting with PraisonAI's multi-agent system can craft input that invokes the SubprocessSandbox. By using the pattern sh -c '<malicious_command>', the attacker bypasses the blocklist entirely since sh is not filtered. The shell interpreter then executes the inner command, which could include any blocked commands or arbitrary system operations.

For example, if the blocklist blocks rm, cat, or wget directly, an attacker can still execute these commands by wrapping them: sh -c 'rm -rf /important/data' or bash -c 'cat /etc/passwd'. This effectively renders the sandbox protections useless.

The scope change indicated in the CVSS assessment means that a successful exploit can impact resources beyond the vulnerable component, potentially affecting the entire host system.

Detection Methods for CVE-2026-34955

Indicators of Compromise

  • Unusual process trees showing sh or bash spawned as child processes of PraisonAI components
  • Command line arguments containing sh -c or bash -c patterns in process execution logs
  • Unexpected file system modifications or network connections originating from PraisonAI processes
  • Suspicious activity in system logs correlating with PraisonAI agent execution times

Detection Strategies

  • Monitor process execution for subprocess.run() calls with shell=True that spawn shell interpreters
  • Implement endpoint detection rules to alert on sh -c or bash -c command patterns executed by Python processes
  • Review application logs for attempted command injections or unusual input patterns
  • Deploy runtime application self-protection (RASP) solutions to detect sandbox escape attempts

Monitoring Recommendations

  • Enable detailed audit logging for all subprocess calls within PraisonAI deployments
  • Configure SentinelOne Singularity to detect command injection patterns and sandbox escape techniques
  • Establish baselines for normal PraisonAI process behavior and alert on deviations
  • Implement file integrity monitoring on critical system directories

How to Mitigate CVE-2026-34955

Immediate Actions Required

  • Upgrade PraisonAI to version 4.5.97 or later immediately
  • Audit all PraisonAI deployments to identify vulnerable instances running versions prior to 4.5.97
  • Review logs for any evidence of exploitation attempts using sh -c or bash -c patterns
  • Restrict local access to systems running PraisonAI to trusted users only

Patch Information

The vulnerability has been patched in PraisonAI version 4.5.97. Users should upgrade to this version or later to remediate the vulnerability. For detailed information about the fix, refer to the GitHub Security Advisory.

Workarounds

  • If immediate patching is not possible, consider disabling or isolating the SubprocessSandbox functionality
  • Implement additional input validation at the application layer before commands reach the sandbox
  • Deploy network segmentation to limit the impact of potential sandbox escapes
  • Use container isolation (Docker, Podman) to add an additional security boundary around PraisonAI deployments
bash
# Example: Running PraisonAI in an isolated container as a temporary mitigation
docker run --rm -it \
  --security-opt=no-new-privileges \
  --cap-drop=ALL \
  --read-only \
  praisonai:4.5.97

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPraisonai

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40287: PraisonAI RCE Vulnerability

  • CVE-2026-40288: PraisonAI YAML Workflow RCE Vulnerability

  • CVE-2026-40156: PraisonAI RCE Vulnerability

  • CVE-2026-40158: PraisonAI Sandbox Bypass RCE 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