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

CVE-2026-34938: PraisonAI RCE Vulnerability

CVE-2026-34938 is a remote code execution vulnerability in PraisonAI that allows attackers to bypass sandbox protections and execute arbitrary OS commands. This article covers technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-34938 Overview

CVE-2026-34938 is a critical sandbox bypass vulnerability in PraisonAI, a multi-agent teams system. Prior to version 1.5.90, the execute_code() function in praisonai-agents runs attacker-controlled Python inside a three-layer sandbox that can be fully bypassed. The bypass is achieved by passing a str subclass with an overridden startswith() method to the _safe_getattr wrapper, enabling arbitrary OS command execution on the host system.

Critical Impact

This vulnerability allows attackers to completely bypass the sandbox protection mechanism and execute arbitrary operating system commands on the host, potentially leading to full system compromise.

Affected Products

  • PraisonAI versions prior to 1.5.90
  • praisonai-agents component with vulnerable execute_code() function

Discovery Timeline

  • 2026-04-03 - CVE CVE-2026-34938 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-34938

Vulnerability Analysis

This vulnerability represents a Protection Mechanism Failure (CWE-693) in PraisonAI's code execution sandbox. The flaw exists in the execute_code() function within the praisonai-agents module, which is designed to safely execute user-provided Python code within a three-layer sandbox environment.

The sandbox implementation relies on a _safe_getattr wrapper function that performs security checks using Python string methods like startswith(). However, the implementation fails to account for the fact that attackers can pass custom string subclasses with overridden methods. By creating a subclass of str that overrides the startswith() method to always return a value that bypasses the security check, an attacker can completely circumvent all three layers of sandbox protection.

Once the sandbox is bypassed, the attacker gains the ability to execute arbitrary Python code without restrictions, which can then be leveraged to run operating system commands directly on the host system.

Root Cause

The root cause of this vulnerability is insufficient input validation in the sandbox's attribute access control mechanism. The _safe_getattr wrapper trusts that string comparison methods will behave as expected, without verifying that the input objects are genuine string instances rather than malicious subclasses. This represents a type confusion vulnerability where the security mechanism can be subverted by providing objects that appear to be strings but behave differently.

Attack Vector

The attack is network-exploitable without requiring authentication or user interaction. An attacker can craft a malicious payload containing a custom str subclass with an overridden startswith() method. When this payload is passed to the execute_code() function, the tampered string method allows the attacker to bypass security checks that would normally block access to dangerous Python functionality.

The vulnerability mechanism works as follows: The sandbox's _safe_getattr function uses startswith() to check whether attribute access should be allowed. By providing a string subclass where startswith() returns controlled values, an attacker manipulates these security checks to grant access to restricted operations. This ultimately enables execution of system-level commands through Python's os module or similar mechanisms.

For detailed technical information about this vulnerability, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-34938

Indicators of Compromise

  • Unusual Python subclass definitions containing overridden string methods in user-supplied code
  • Unexpected system command execution originating from PraisonAI processes
  • Access attempts to os, subprocess, or other system-level Python modules from within the sandbox context
  • Anomalous process spawning from the PraisonAI application

Detection Strategies

  • Monitor PraisonAI logs for attempts to access restricted Python modules or attributes
  • Implement application-level logging to capture code submitted to execute_code() for forensic analysis
  • Deploy endpoint detection rules to identify unusual child processes spawned by PraisonAI
  • Use behavioral analysis to detect command execution patterns inconsistent with normal AI agent operations

Monitoring Recommendations

  • Enable verbose logging for all code execution requests in PraisonAI
  • Set up alerts for any system calls or file system access originating from sandboxed code execution
  • Implement network traffic monitoring to detect potential data exfiltration following successful exploitation
  • Review authentication and access logs for unauthorized attempts to submit code to the AI agent system

How to Mitigate CVE-2026-34938

Immediate Actions Required

  • Upgrade PraisonAI to version 1.5.90 or later immediately
  • If upgrade is not immediately possible, disable or restrict access to the execute_code() functionality
  • Audit logs for any signs of previous exploitation attempts
  • Implement network segmentation to limit the blast radius if the vulnerability is exploited

Patch Information

This vulnerability has been patched in PraisonAI version 1.5.90. The fix addresses the sandbox bypass by implementing proper type validation to ensure that only genuine string objects can be processed by the _safe_getattr wrapper function. Organizations should update to this version or later as soon as possible.

For additional details on the security fix, refer to the GitHub Security Advisory.

Workarounds

  • Disable the execute_code() functionality entirely if not required for business operations
  • Implement strict input validation at the application layer before code reaches the sandbox
  • Run PraisonAI in an isolated container or virtual machine to limit the impact of potential sandbox escapes
  • Apply network-level access controls to restrict which users or systems can submit code for execution
bash
# Upgrade PraisonAI to the patched version
pip install --upgrade praisonai>=1.5.90

# Verify the 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 Score10.0

  • EPSS Probability0.13%

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