Python
CVE-2026-39305
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInject malicious prompt
-
DeliveryAI generates action plan with traversal paths
-
ExploitVictim executes orchestrator apply
-
ExecutionPath concatenation bypasses workspace
-
PersistWrite attacker payload to system file
-
ImpactAchieve 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
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
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
Lifecycle Timeline
4DescriptionNVD
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:
target = workspace / step.targetIn 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:
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
GHSA-jfxc-v5g9-38xr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB