Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess authenticated PraisonAI agent interface
-
DeliveryIdentify CODE_TOOLS exposed without set_workspace
-
ExploitCraft prompt with absolute target file path
-
ExecutionAgent invokes code_read_file or code_apply_diff
-
Persistworkspace=None skips path containment guard
-
ImpactRead or overwrite arbitrary filesystem files
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 three concurrent conditions: (1) the application uses the praisonai package's CODE_TOOLS, code_read_file, code_search_replace, or code_apply_diff agent wrappers; (2) set_workspace() has NOT been called before those tools are exposed to agents - specifically, the module-level _workspace_root remains None; and (3) a user or attacker submits a prompt that causes the agent to invoke one of the file-operation wrappers with a path outside the intended directory. Applications that call set_workspace() before initializing CODE_TOOLS (the documented and example-demonstrated approach) are not vulnerable. Exploitation is further limited by PR:L (some authenticated access to the agent interface is required) and UI:R (a user must submit the triggering prompt). Mass automated exploitation is not possible per SSVC Automatable: no. |
| Impact | The NVD-provided CVSS 7.3 vector (AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N) captures worst-case impact accurately - arbitrary file read and write - but AC:L understates the deployment pre-condition: exploitation requires the application to expose CODE_TOOLS before set_workspace() is called, which the official examples explicitly avoid. SSVC rates Automatable: no, consistent with the UI:R requirement and the specific misconfiguration gate. Technical impact is rated total by SSVC, aligning with the combined C:H/I:H. A POC exists (SSVC: poc), raising urgency above a theoretical finding, but there is no CISA KEV listing and no evidence of mass exploitation. The realistic risk profile is moderate-high for developers who misuse the API order, and negligible for deployments that follow official examples. The CVSS score is a reasonable worst-case ceiling rather than a typical-case expectation. |
| Exploit ScenarioDerived | An attacker interacting with a PraisonAI-based web application that exposes code agent tools before set_workspace() is called submits a crafted prompt instructing the agent to read /root/.ssh/id_rsa or overwrite /etc/cron.d/backdoor. Because _workspace_root is None, the path containment guard is silently skipped and the file operation executes against the target path. A local proof-of-concept script (poc_code_tools_workspace_bypass.py) has been published in the GHSA advisory demonstrating successful read bypass. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 15, 2026
Path traversal in PraisonAI before 4.6.59 allows prompt-influenced calls to code agent tools to read and modify arbitrary files outside any intended project boundary when an application exposes CODE_TOOLS, code_read_file, code_search_replace, or code_apply_diff before calling set_workspace(). The global _workspace_root defaults to None, and the lower-level file helpers silently skip path containment checks when workspace is falsy - a fail-open design identical to a previously patched write_file path (GHSA-hvhp-v2gc-268q). A proof-of-concept exists per SSVC data; no confirmed active exploitation in CISA KEV.
RemediationAI
Upgrade to PraisonAI 4.6.59, which applies the same fail-closed default (effective_workspace = workspace or os.getcwd()) to read_file, search_replace, and apply_diff that was previously applied only to write_file. The fix is available via PyPI (pip install --upgrade 'praisonai>=4.6.59') and confirmed in the GitHub release tag v4.6.59 and commit b4270173d4123fb1ee8910588f0896668ee21b59 at https://github.com/MervinPraison/PraisonAI/commit/b4270173d4123fb1ee8910588f0896668ee21b59. If immediate upgrade is not possible, call set_workspace() with an explicit directory before any CODE_TOOLS initialization - the advisory confirms that explicitly configured workspaces remain fully effective as a workaround. Do not expose CODE_TOOLS agents in prompt-injection-reachable contexts without a workspace boundary in place.
Affected VersionsENISA
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
PraisonAI (CPE: cpe:2.3:a:mervinpraison:praisonai) is a Python multi-agent framework whose CODE_TOOLS module exposes agent-callable wrappers around file operations. The vulnerability (CWE-22, Path Traversal) originates in agent_tools.py, where the module-level _workspace_root is initialized to None and passed directly into helpers read_file.py, search_replace.py, and apply_diff.py. Each helper enforces path containment only inside an if workspace: branch, so a None workspace silently disables the guard. The write_file path was previously hardened to use effective_workspace = workspace or os.getcwd(), but the read and edit paths were not. When agents process user prompts containing absolute or traversal paths, those paths pass unchecked to the underlying file operations, reaching any readable or writable file on the host filesystem.
Know when Praisonai 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:L/UI:R/S:U/C:H/I:H/A:N
AC raised to H because exploitation requires a specific API misuse order (CODE_TOOLS before set_workspace); no availability impact applies.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
PraisonAI is a multi-agent teams system. Prior to 4.6.59, the CODE_TOOLS wrappers keep _workspace_root as None and pass workspace=None to read_file, search_replace, and apply_diff helpers that enforce path containment only for a truthy workspace. An application that exposes code_read_file, code_search_replace, or code_apply_diff before set_workspace can therefore let prompt-influenced calls read and modify files outside the intended project directory, while explicitly configured workspaces remain effective. This vulnerability is fixed in 4.6.59.
Technical POC Analysis
CWE-22 (path traversal), with CWE-200 and CWE-863 co-assigned.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
PraisonAI versions before 4.6.59 contain a path traversal vulnerability in code automation tools that allows AI prompts to access and modify files outside project boundaries, risking exposure of source code, system credentials, and application configurations. Publicly available exploit code exists; this poses significant data breach and system compromise risk for organizations using PraisonAI for code operations.
Apply vendor patch.
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 in PraisonAI before 1.6.78 allows attackers to run arbitrary Python on the host by manipulating th
PraisonAI's TypeScript MCP server (npm package `praisonai`, versions 1.5.0 through 1.7.1) exposes an HTTP JSON-RPC trans
Unauthenticated authentication bypass in praisonai-platform prior to 0.1.6 (and PraisonAI before 4.6.51) allows a remote
WebSocket origin-validation bypass in PraisonAI's Browser Server (praisonai/browser/server.py) before 4.6.58 lets an att
Unauthenticated agent access in PraisonAI before 1.7.3 lets remote attackers read agent instructions and system prompts
PraisonAI's `praisonai serve` subsystem (agents and unified modes) accepts an `--api-key` CLI flag that is parsed but ne
System prompt extraction and unauthorized tool invocation in PraisonAI before 4.6.78 arise because the prompt-injection
Unauthenticated remote agent invocation in PraisonAI versions 4.6.34 through 4.6.57 allows any network-reachable caller
SSRF protection bypass in PraisonAI's praisonaiagents library (all versions before 1.6.58) lets low-privileged users rou
Server-side request forgery in PraisonAI's Crawl4AI/Chromium crawling backend (all versions before 1.6.78) lets low-priv
Authentication fail-open in PraisonAI's Recipe HTTP server allows unauthenticated remote attackers to invoke recipe exec
Authentication bypass in PraisonAI's AgentServer component exposes all routes - /publish, /events, /info, /health - to u
EUVD-2026-77614
GHSA-gcq3-mfvh-3x25
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB