{"vuln_id":"GHSA-jfxc-v5g9-38xr","aliases":["CVE-2026-39305"],"description":"PraisonAI Vulnerable to Arbitrary File Write / Path Traversal in Action Orchestrator","published_at":"2026-04-06T23:09:03Z","modified_at":"2026-11-16T16:00:27Z","first_seen_at":"2026-11-21T19:15:20.271116Z","severity":"critical","severity_source":"ghsa","cvss_score":9.0,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H","cwe":["CWE-22"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-jfxc-v5g9-38xr"},"matched_alias":null,"items":[{"id":2519,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-jfxc-v5g9-38xr / CVE-2026-39305: PraisonAI Vulnerable to Arbitrary File Write / Path Traversal in Action Orchestrator","summary":"PraisonAI Vulnerable to Arbitrary File Write / Path Traversal in Action Orchestrator\n\nThe 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.\n\n### Details\nLocation: `src/praisonai/praisonai/cli/features/action_orchestrator.py` (Lines 402, 409, 423)\n\nVulnerable Code snippet:\n```python\ntarget = workspace / step.target\n```\n\nIn 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.\n\n### PoC\nConstruct a malicious `ActionStep` payload with path traversal characters:\n\n```python\nfrom praisonai.cli.features.action_orchestrator import ActionStep, ActionType, ActionStatus\n\n# Payload targeting a file outside the workspace\nstep = ActionStep(\n    id=\"test_traversal\",\n    action_type=ActionType.FILE_CREATE,\n    description=\"Malicious file write\",\n    target=\"../../../../../../../tmp/orchestrator_pwned.txt\",\n    params={\"content\": \"pwned\"},\n    status=ActionStatus.APPROVED\n)\n\n# When the orchestrator applies this step, it writes to the traversed path\n# _apply_step(step)\n```\n\n### Impact\nThis 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.\n\nAffected packages: pip:PraisonAI\nPatched: PraisonAI 4.5.113","url":"https://github.com/advisories/GHSA-jfxc-v5g9-38xr","published_at":"2026-04-06T23:09:03Z","updated_at":"2026-11-16T16:00:27Z","fetched_at":"2026-11-21T19:15:18.416901Z","severity":"critical","cvss_score":9.0,"epss":0.00318,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"PraisonAI","vuln_id":"CVE-2026-39305","vuln_ids":["CVE-2026-39305","GHSA-JFXC-V5G9-38XR"],"tags":["ghsa","pip","CWE-22"],"cluster_id":2482,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2519","html":"https://vulnwatch.ve1ve2.com/item/2519"}}]}