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-39888

CVE-2026-39888: PraisonAI Sandbox Escape RCE Vulnerability

CVE-2026-39888 is a sandbox escape remote code execution vulnerability in PraisonAI that allows attackers to bypass security restrictions and execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-39888 Overview

CVE-2026-39888 is a critical sandbox escape vulnerability in PraisonAI, a multi-agent teams system. The vulnerability exists in the execute_code() function within praisonaiagents.tools.python_tools, which defaults to sandbox_mode="sandbox". This mode runs user code in a subprocess wrapped with a restricted __builtins__ dict and an AST-based blocklist. However, the AST blocklist embedded inside the subprocess wrapper contains only 11 attribute names—a strict subset of the 30+ names blocked in the direct-execution path—allowing attackers to bypass the sandbox and achieve arbitrary code execution.

Critical Impact

Attackers can escape the PraisonAI sandbox environment and execute arbitrary Python code on the underlying system, potentially leading to complete system compromise, data theft, or lateral movement within the network.

Affected Products

  • PraisonAI versions prior to 1.5.115
  • PraisonAI multi-agent teams system with python_tools module

Discovery Timeline

  • 2026-04-08 - CVE-2026-39888 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2026-39888

Vulnerability Analysis

This sandbox escape vulnerability (CWE-657: Violation of Secure Design Principles) stems from an incomplete implementation of security controls in the AST-based attribute blocklist. The subprocess execution path implements a significantly weaker blocklist compared to the direct-execution path, creating an exploitable gap in the sandbox's security boundary.

The core issue is that four critical attributes that form a frame-traversal chain out of the sandbox are entirely absent from the subprocess blocklist: __traceback__, tb_frame, f_back, and f_builtins. These attributes are essential components of Python's exception and frame introspection mechanism and can be chained together to escape the restricted environment.

Root Cause

The root cause is an incomplete attribute blocklist in the subprocess execution path of python_tools.py. While the direct-execution path blocks 30+ dangerous attribute names, the blocked_attrs list in the subprocess wrapper contains only 11 entries. This inconsistency violates secure design principles and creates a bypass path.

The missing attributes (__traceback__, tb_frame, f_back, f_builtins) enable attackers to traverse Python's frame stack from a caught exception object, eventually reaching the real __builtins__ dictionary of the subprocess wrapper frame—effectively breaking out of the restricted execution context.

Attack Vector

The attack leverages Python's exception handling and frame introspection to escape the sandbox:

  1. An attacker triggers an exception within the sandbox environment
  2. By catching the exception, the attacker gains access to its __traceback__ attribute
  3. From the traceback object, the attacker traverses to tb_frame to access the frame object
  4. Using f_back, the attacker walks up the call stack to reach the wrapper frame
  5. The f_builtins attribute exposes the unrestricted __builtins__ dictionary
  6. The attacker retrieves exec (or similar dangerous functions) using a non-blocked variable name
  7. Arbitrary code execution is achieved, bypassing all remaining security layers

The attack can be executed remotely over the network with low complexity, requiring only low-privilege access to submit code for execution. For detailed technical analysis, see the GitHub Security Advisory.

Detection Methods for CVE-2026-39888

Indicators of Compromise

  • Unexpected access to frame introspection attributes (__traceback__, tb_frame, f_back, f_builtins) in PraisonAI execution logs
  • Unusual subprocess spawning or child process activity originating from PraisonAI agent processes
  • Evidence of code execution outside the expected sandbox boundaries
  • Anomalous system calls or file access patterns from PraisonAI worker processes

Detection Strategies

  • Monitor for Python code submissions containing frame traversal attribute chains (__traceback__, tb_frame, f_back, f_builtins)
  • Implement logging and alerting for access attempts to restricted built-in functions like exec, eval, compile, and __import__
  • Deploy runtime security monitoring to detect sandbox escape attempts through behavioral analysis
  • Review PraisonAI execution logs for exception handling patterns followed by suspicious attribute access

Monitoring Recommendations

  • Enable verbose logging for all code execution within PraisonAI agents
  • Monitor subprocess activity and system calls originating from PraisonAI processes
  • Implement network egress monitoring for unexpected outbound connections from agent processes
  • Set up alerts for any code execution patterns that deviate from expected agent behavior

How to Mitigate CVE-2026-39888

Immediate Actions Required

  • Upgrade PraisonAI to version 1.5.115 or later immediately
  • Audit existing deployments for signs of exploitation
  • Review any code that was executed through the vulnerable execute_code() function
  • Consider temporarily disabling code execution features until the patch is applied

Patch Information

This vulnerability is fixed in PraisonAI version 1.5.115. The patch addresses the incomplete AST blocklist by adding the missing frame-traversal attributes (__traceback__, tb_frame, f_back, f_builtins) to the subprocess execution path blocklist, ensuring parity with the direct-execution path.

For patch details and upgrade instructions, refer to the GitHub Security Advisory.

Workarounds

  • If upgrading is not immediately possible, consider disabling the sandbox code execution feature entirely
  • Implement additional network isolation for systems running PraisonAI agents
  • Deploy application-level firewalls to restrict subprocess capabilities
  • Use containerization with restricted syscall policies to limit the impact of potential sandbox escapes
bash
# Configuration example - Upgrade PraisonAI to patched version
pip install --upgrade praisonai>=1.5.115

# Verify installed version
pip show praisonai | grep Version

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPraisonai

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-657
  • 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