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

CVE-2026-40157: PraisonAI Path Traversal Vulnerability

CVE-2026-40157 is a path traversal flaw in PraisonAI that allows attackers to overwrite arbitrary files via malicious tar archives. This post covers technical details, affected versions, impact, and mitigation.

Published: April 17, 2026

CVE-2026-40157 Overview

CVE-2026-40157 is a critical path traversal vulnerability affecting PraisonAI, a multi-agent teams system. The vulnerability exists in the cmd_unpack function within the recipe CLI, which extracts .praison tar archives using raw tar.extract() without validating archive member paths. A malicious .praison bundle containing ../../ entries can write files outside the intended output directory, enabling an attacker to overwrite arbitrary files on a victim's filesystem when they run praisonai recipe unpack.

Critical Impact

Arbitrary file overwrite via malicious archive distribution allows attackers to compromise system integrity, potentially leading to code execution through overwriting configuration files, scripts, or executables.

Affected Products

  • PraisonAI versions prior to 4.5.128

Discovery Timeline

  • 2026-04-10 - CVE CVE-2026-40157 published to NVD
  • 2026-04-14 - Last updated in NVD database

Technical Details for CVE-2026-40157

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as path traversal or directory traversal. The flaw resides in PraisonAI's recipe CLI functionality that handles unpacking of .praison bundle files.

When a user executes the praisonai recipe unpack command, the underlying cmd_unpack function processes tar archives without performing validation on the paths of files contained within the archive. This allows an attacker to craft a malicious .praison bundle that includes path traversal sequences (such as ../../) in the archived file paths.

The vulnerability requires user interaction—specifically, the victim must obtain and unpack a malicious bundle. However, given the network-accessible nature of bundle distribution and the minimal prerequisites for exploitation, the attack surface is significant. Successful exploitation can result in high impact to confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause is the use of Python's raw tar.extract() method without sanitizing or validating the member paths contained within the archive. The tar.extract() function, when given archive members with relative path components like ../, will follow those paths literally, allowing writes to directories outside the intended extraction target. The absence of path canonicalization or containment checks before extraction enables this directory escape.

Attack Vector

An attacker exploiting CVE-2026-40157 would craft a malicious .praison archive containing files with path traversal sequences in their names. The attack chain proceeds as follows:

  1. The attacker creates a .praison bundle file containing entries with paths such as ../../.bashrc or ../../../etc/cron.d/malicious
  2. The malicious bundle is distributed to victims through package repositories, shared development resources, or social engineering
  3. When the victim runs praisonai recipe unpack on the malicious bundle, the cmd_unpack function extracts files using tar.extract() without path validation
  4. Files are written to locations outside the intended output directory, potentially overwriting critical system or user files
  5. Depending on which files are overwritten, the attacker may achieve code execution, persistence, or denial of service

The vulnerability mechanism involves unsanitized archive member paths being passed directly to extraction functions. Technical details are available in the GitHub Security Advisory.

Detection Methods for CVE-2026-40157

Indicators of Compromise

  • Presence of files in unexpected locations following use of praisonai recipe unpack command
  • Modified system or configuration files with timestamps correlating to recipe unpack operations
  • Unexpected .praison bundle files from untrusted sources in download directories
  • File write audit logs showing paths with ../ sequences during archive extraction

Detection Strategies

  • Monitor file system activity for writes outside expected PraisonAI directories during unpack operations
  • Implement file integrity monitoring (FIM) on critical system files and user configuration files
  • Audit command-line usage patterns for praisonai recipe unpack commands, especially with newly downloaded bundles
  • Deploy endpoint detection rules that flag archive extraction operations with path traversal patterns

Monitoring Recommendations

  • Enable detailed file access logging on systems where PraisonAI is installed
  • Configure SentinelOne agents to monitor for suspicious file write patterns associated with archive extraction
  • Implement alerting for modifications to sensitive files like shell configurations, cron jobs, or startup scripts
  • Regularly audit the provenance of .praison bundles before unpacking

How to Mitigate CVE-2026-40157

Immediate Actions Required

  • Upgrade PraisonAI to version 4.5.128 or later immediately
  • Audit systems for any .praison bundles from untrusted sources that may have been unpacked
  • Review file system changes and restore any overwritten files from known-good backups
  • Implement application allowlisting to control execution of modified files

Patch Information

The vulnerability is fixed in PraisonAI version 4.5.128. Users should upgrade to this version or later to address the path traversal issue. The fix implements proper validation of archive member paths before extraction, preventing directory escape via ../ sequences.

For additional details and patch information, refer to the GitHub Security Advisory.

Workarounds

  • Avoid unpacking .praison bundles from untrusted or unverified sources
  • Manually inspect archive contents using tar -tvf bundle.praison before extraction to identify path traversal attempts
  • Run PraisonAI in an isolated environment or container to limit the impact of arbitrary file writes
  • Implement file system restrictions using sandboxing technologies to contain extraction operations
bash
# Inspect archive contents before unpacking to detect path traversal attempts
tar -tvf suspicious_bundle.praison | grep '\.\.'

# If upgrading via pip
pip install praisonai>=4.5.128

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechPraisionai

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/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
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer 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