Skip to main content

Python CVE-2026-39305

CRITICAL
Path Traversal (CWE-22)
2026-04-06 https://github.com/MervinPraison/PraisonAI GHSA-jfxc-v5g9-38xr
10.0
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Inject malicious prompt
  2. Delivery
    AI generates action plan with traversal paths
  3. Exploit
    Victim executes orchestrator apply
  4. Execution
    Path concatenation bypasses workspace
  5. Persist
    Write attacker payload to system file
  6. Impact
    Achieve code execution on next trigger

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to execute PraisonAI's Action Orchestrator feature (_apply_step method) against a malicious ActionStep object containing path traversal sequences in the 'target' parameter. Specifically, the FILE_CREATE or FILE_EDIT action types must be invoked with user/agent-controlled target paths. This occurs when processing AI-generated action plans from untrusted prompts or when agents are compromised via prompt injection attacks that manipulate plan generation. The vulnerability does not require network access, authentication, or privileged user context (PR:N), but does require local code execution privileges to invoke the orchestrator Python module. Default configurations are vulnerable if the orchestrator feature is used - no non-standard settings required. Scope change (S:C) reflects that exploitation breaks out of the intended workspace sandbox to host system access. Attack complexity is low (AC:L) as constructing traversal payloads requires only basic path manipulation knowledge.

Impact

CVSS 9.0 reflects maximum local impact with scope change (AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H), indicating the vulnerability is severe when triggered but requires local access to the orchestrator execution context. The 'local' attack vector (AV:L) is key - exploitation requires either running a malicious agent process or injecting traversal payloads into orchestrator task inputs, not remote network exploitation. EPSS 2% (4th percentile) aligns with this - while the impact is catastrophic (arbitrary file write leading to RCE), the attack surface is limited to environments actively running PraisonAI's orchestrator feature with untrusted action definitions. No CISA KEV listing indicates no widespread exploitation observed. Public PoC exists and is trivial to weaponize, elevating risk for exposed instances. Real-world risk is HIGH for users running the orchestrator with AI-generated or externally-sourced action plans, but LOW for installations that don't use this feature or process only trusted action definitions. The S:C (Changed Scope) rating is critical - successful exploitation allows breakout from the workspace sandbox to host system compromise. Priority should be IMMEDIATE for production PraisonAI deployments processing untrusted inputs, MEDIUM for development/testing environments with access controls.

Exploit ScenarioDerived

An attacker crafts a malicious prompt or compromised agent that generates an action plan containing FILE_CREATE steps with target paths like '../../../.ssh/authorized_keys'. When the victim executes the orchestrator to apply this plan, the traversal bypasses workspace isolation and overwrites the SSH authorized keys file with attacker-controlled public keys, granting persistent remote access. Alternatively, overwriting ~/.bashrc or systemd service files achieves code execution on next login or service restart. Public PoC code is available demonstrating /tmp file creation via traversal, trivially adaptable to target critical system paths.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Apr 16, 2026

Arbitrary file write via path traversal in PraisonAI's Action Orchestrator allows compromised agents to overwrite critical system files and achieve remote code execution. The vulnerability affects the praisonai pip package, where unsanitized user input in file operation targets enables directory traversal attacks using '../' sequences. Public exploit code exists with detailed proof-of-concept demonstrating overwrite of SSH keys and shell configuration files. Despite CVSS 9.0 (Critical), EPSS score is 2% (4th percentile), indicating low observed exploitation probability in the wild. Vendor patch released in version 4.5.113.

Earlier versions of this analysis (1)
v1 Apr 06, 2026 - 23:31 CVSS 9.0

Path traversal in PraisonAI Action Orchestrator (v<4.5.113) allows arbitrary file write via directory traversal sequences in action target paths. Attackers can exploit this through malicious ActionStep payloads containing '../' sequences to overwrite critical system files (SSH keys, shell profiles) or plant executables, achieving local privilege escalation or remote code execution. CVSS 9.0 (Critical). Vendor-released patch available in v4.5.113. No public exploit identified at time of analysis, though detailed proof-of-concept demonstrates trivial exploitation via crafted ActionStep objects targeting paths like '../../../tmp/pwned.txt'.

RemediationAI

Upgrade praisonai to version 4.5.113 or later via pip: 'pip install --upgrade praisonai>=4.5.113'. Vendor-released patch available at https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.113 addresses the path validation flaw. If immediate patching is not feasible, implement strict input validation by modifying _apply_step to resolve paths and verify containment: after 'target = workspace / step.target', add 'resolved_target = target.resolve()' and 'if not resolved_target.is_relative_to(workspace.resolve()): raise ValueError("Path traversal detected")'. This workaround prevents traversal but requires code modification (breaks vendor support). Alternative compensating control: restrict orchestrator execution to isolated containers with read-only root filesystem and explicit write permissions only to /tmp or dedicated workspace volumes - limits blast radius to container scope but reduces functionality for legitimate file operations. Disable the Action Orchestrator feature entirely if not operationally required by avoiding imports from praisonai.cli.features.action_orchestrator module. For multi-tenant deployments, ensure each workspace runs under separate user accounts with restrictive umask and mandatory access controls to prevent cross-tenant file writes even if traversal succeeds.

Affected Packages

pypi praisonai fix: 4.5.113

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in PraisonAI's Action Orchestrator component, a Python-based workflow automation feature that processes file system operations. The flaw manifests in the _apply_step method where Python's pathlib Path concatenation operator (/) is used without validation: 'target = workspace / step.target'. Python's Path class does not inherently prevent directory traversal when combining paths with user-controlled components. CWE-22 (Path Traversal) represents a classic input validation failure where relative path segments bypass intended directory restrictions. The vulnerable code affects FILE_CREATE and FILE_EDIT action types, which write content directly to the constructed path without checking if the resolved absolute path escapes the workspace boundary. This is a canonical example of insufficient path canonicalization - the code should use Path.resolve() to normalize the path and verify it starts with the workspace prefix before any file operations.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 10.0 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Oct 26, 2026 - 21:23 NVD
9.0 (CRITICAL) 10.0 (CRITICAL)
Analysis Updated
Apr 16, 2026 - 01:58 vuln.today
v2 - CVSS changed
Patch released
Apr 07, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 06, 2026 - 23:09 nvd
CRITICAL 9.0

DescriptionNVD

The Action Orchestrator feature contains a Path Traversal vulnerability that allows an attacker (or compromised agent) to write to arbitrary files outside of the configured workspace directory. By supplying relative path segments (../) in the target path, malicious actions can overwrite sensitive system files or drop executable payloads on the host.

Details

Location: src/praisonai/praisonai/cli/features/action_orchestrator.py (Lines 402, 409, 423)

Vulnerable Code snippet:

python
target = workspace / step.target

In the _apply_step method, paths are constructed by concatenating the workspace path with a user-supplied step.target string: target = workspace / step.target. The code fails to resolve and validate that the final absolute path remains within the bounds of the workspace directory. When processing FILE_CREATE or FILE_EDIT actions, this flaw permits arbitrary file modification.

PoC

Construct a malicious ActionStep payload with path traversal characters:

python
from praisonai.cli.features.action_orchestrator import ActionStep, ActionType, ActionStatus
# Payload targeting a file outside the workspace
step = ActionStep(
    id="test_traversal",
    action_type=ActionType.FILE_CREATE,
    description="Malicious file write",
    target="../../../../../../../tmp/orchestrator_pwned.txt",
    params={"content": "pwned"},
    status=ActionStatus.APPROVED
)
# When the orchestrator applies this step, it writes to the traversed path
# _apply_step(step)

Impact

This is an Arbitrary File Write vulnerability. Anyone running the Action Orchestrator to apply modifications is vulnerable. A malicious prompt could trick the agent into generating a plan that overwrites critical files (e.g., ~/.ssh/authorized_keys, .bashrc) leading to Remote Code Execution (RCE) or system corruption.

Executive ViewAI

Why It Matters

PraisonAI versions prior to 4.5.113 contain a critical path traversal vulnerability in the Action Orchestrator component that allows attackers to write arbitrary files to system directories, including SSH keys and configuration files, potentially enabling remote code execution. Organizations using PraisonAI for agent-based automation face immediate risk of system compromise and lateral movement if deployed in production environments with privileged access.

Business Impact: High
Compensating Controls

Apply vendor patch (praisonai version 4.5.113 or later). Interim mitigations if immediate patching impossible: (1) Restrict PraisonAI agent execution to non-root accounts with minimal file system permissions; (2) Deploy file system access controls (AppArmor, SELinux) to deny write access to system directories; (3) Disable PraisonAI Action Orchestrator features until patched; (4) Implement egress filtering to limit agent outbound connections; (5) Containerize PraisonAI processes to isolate file system access.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)NVD

pkg:pip/praisonai

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy