{"id":"CVE-2026-39305","kind":"vulnerability","aliases":["CVE-2026-39305","GHSA-jfxc-v5g9-38xr"],"related":[],"title":"PraisonAI Vulnerable to Arbitrary File Write / Path Traversal in Action Orchestrator","description":"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.\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.","summary":"PraisonAI's Action Orchestrator joins a user-supplied target path onto the workspace without checking it stays inside, so `../` segments escape the directory. An attacker or a manipulated agent can overwrite or create arbitrary files on the host, such as SSH keys or shell startup files, which can lead to code execution.","severity":"critical","cvss":10.0,"epss":0.00318,"exploited":false,"exploited_at":null,"products":[{"name":"PraisonAI","fixed":["4.5.113"],"affected":"<= 4.5.112","ecosystem":"pypi"},{"name":"praison praisonai","fixed":[],"affected":"<= 4.5.112","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["ai-agents","ai-tooling","cwe-22","praisonai","pypi","python","self-hosted"],"not_affected_if":["orchestrator-not-used","version-4.5.113-or-later"],"how_to_check":"- Check the installed version with `pip show praisonai` and compare it with the affected range (4.5.112 and below).\n- Look for `action_orchestrator.py` under `praisonai/cli/features/` and check whether `_apply_step` validates that the resolved target stays inside the workspace.\n- Confirm whether the Action Orchestrator feature is in use at all.","fix":"- `praisonai` (PyPI): upgrade to `4.5.113`.","status":"open","published_at":"2026-04-06T23:09:03+00:00","first_seen_at":"2026-11-16T16:03:23+00:00","triaged_at":"2026-11-16T16:04:49+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"ai-tooling","confidence":0.8,"triage":{"at":"2026-11-16T16:04:49Z","model":"claude-haiku-5-5","output":{"fix":"- `praisonai` (PyPI): upgrade to `4.5.113`.","reach":"local","title":"PraisonAI: path traversal lets agent actions write files outside the workspace","impact":"high","summary":"PraisonAI's Action Orchestrator joins a user-supplied target path onto the workspace without checking it stays inside, so `../` segments escape the directory. An attacker or a manipulated agent can overwrite or create arbitrary files on the host, such as SSH keys or shell startup files, which can lead to code execution.","audience":"developers","category":"ai-tooling","nicknames":[],"who_cares":["python","pypi","praisonai","ai-agents","self-hosted"],"confidence":0.8,"fix_status":"available","needs_auth":"unknown","worst_case":"arbitrary host files overwritten, possibly leading to code execution","analyst_note":"","how_to_check":"- Check the installed version with `pip show praisonai` and compare it with the affected range (4.5.112 and below).\n- Look for `action_orchestrator.py` under `praisonai/cli/features/` and check whether `_apply_step` validates that the resolved target stays inside the workspace.\n- Confirm whether the Action Orchestrator feature is in use at all.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["version-4.5.113-or-later","orchestrator-not-used"],"who_is_affected":"Teams that run PraisonAI's Action Orchestrator to apply file create or file edit steps, especially when plans are generated by a model or by untrusted input. Installations that do not use the Action Orchestrator feature are not exposed through this path, and the attack needs the orchestrator to apply steps.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"critical"},"cost_usd":0.000835,"input_tokens":5243,"output_tokens":621,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2026':13A,21A '-22':33B '-39305':14A,22A '/../../../../../../tmp/orchestrator_pwned.txt':253C '/.ssh/authorized_keys':308C '38xr':19A '402':147C '409':148C '423':149C 'absolut':190C 'action':10A,42B,94C,130C,207C,244C,285C 'actionstatus':231C 'actionstatus.approved':258C 'actionstep':218C,229C,240C 'actiontyp':230C 'actiontype.file':246C 'agent':28B,69B,108C,298C 'ai':27B,30B 'ai-ag':26B 'ai-tool':29B 'allow':103C 'anyon':282C 'appli':159C,262C,271C,288C 'arbitrari':4A,74B,112C,211C,278C 'attack':65B,105C 'bashrc':309C 'bound':195C 'charact':223C 'check':55B 'code':91B,151C,181C,313C 'compromis':107C 'concaten':166C 'configur':117C 'construct':164C,215C 'contain':97C 'content':255C 'corrupt':318C 'could':295C 'creat':73B,203C,247C 'critic':305C 'cve':12A,20A 'cwe':32B 'descript':248C 'detail':143C 'directori':63B,119C,199C 'drop':137C 'e.g':307C 'edit':206C 'escap':61B 'execut':92B,138C,314C 'fail':182C 'featur':96C 'file':5A,75B,86B,113C,135C,202C,205C,212C,235C,250C,279C,306C 'final':189C 'flaw':209C 'generat':300C 'ghsa':16A 'ghsa-jfxc-v5g9-38xr':15A 'host':39B,78B,142C 'id':241C 'impact':274C 'import':228C 'insid':58B 'jfxc':17A 'join':44B 'key':82B 'lead':89B,310C 'line':146C 'locat':144C 'malici':129C,217C,249C,293C 'manipul':68B 'method':161C 'modif':213C,289C 'onto':51B 'orchestr':11A,43B,95C,227C,261C,286C 'outsid':114C,236C 'overwrit':71B,132C,304C 'param':254C 'path':7A,50B,99C,123C,128C,162C,169C,191C,221C,270C 'payload':139C,219C,232C 'permit':210C 'plan':302C 'poc':214C 'praison':24A 'praisonai':1A,23A,25A,34B,40B 'praisonai.cli.features.action':226C 'process':201C 'prompt':294C 'pwned':256C 'pypi':35B 'python':36B,153C,224C 'rce':315C 'relat':122C 'remain':192C 'remot':312C 'resolv':184C 'run':283C 'segment':60B,124C 'self':38B 'self-host':37B 'sensit':133C 'shell':84B 'snippet':152C 'src/praisonai/praisonai/cli/features/action_orchestrator.py':145C 'ssh':81B 'startup':85B 'status':257C 'stay':57B 'step':160C,239C,264C,272C,273C 'step.target':156C,175C,179C 'string':176C 'suppli':48B,121C,174C 'system':134C,317C 'target':49B,127C,154C,177C,233C,252C 'test':242C 'tool':31B 'travers':8A,100C,222C,243C,269C 'trick':296C 'type':245C 'user':47B,173C 'user-suppli':46B,172C 'v5g9':18A 'valid':186C 'vulner':2A,101C,150C,281C,291C 'within':193C 'without':54B 'workspac':53B,118C,155C,168C,178C,198C,238C 'write':6A,110C,251C,266C,280C","nicknames":[],"mitigations":[],"who_affected":"Teams that run PraisonAI's Action Orchestrator to apply file create or file edit steps, especially when plans are generated by a model or by untrusted input. Installations that do not use the Action Orchestrator feature are not exposed through this path, and the attack needs the orchestrator to apply steps.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["praisonai","praisonpraisonai"],"ptokens":["praison","praisonai"],"labels":["aiagents","aitooling","critical","cwe22","praisonai","pypi","python","selfhosted","vendor"],"campaign_type":null,"search_a":"'-2026':13A,21A '-39305':14A,22A '38xr':19A 'action':10A 'arbitrari':4A 'cve':12A,20A 'file':5A 'ghsa':16A 'ghsa-jfxc-v5g9-38xr':15A 'jfxc':17A 'orchestr':11A 'path':7A 'praison':24A 'praisonai':1A,23A,25A 'travers':8A 'v5g9':18A 'vulner':2A 'write':6A","search_b":"'-22':33B 'action':42B 'agent':28B,69B 'ai':27B,30B 'ai-ag':26B 'ai-tool':29B 'arbitrari':74B 'attack':65B 'check':55B 'code':91B 'creat':73B 'cwe':32B 'directori':63B 'escap':61B 'execut':92B 'file':75B,86B 'host':39B,78B 'insid':58B 'join':44B 'key':82B 'lead':89B 'manipul':68B 'onto':51B 'orchestr':43B 'overwrit':71B 'path':50B 'praisonai':34B,40B 'pypi':35B 'python':36B 'segment':60B 'self':38B 'self-host':37B 'shell':84B 'ssh':81B 'startup':85B 'stay':57B 'suppli':48B 'target':49B 'tool':31B 'user':47B 'user-suppli':46B 'without':54B 'workspac':53B","search_c":"'/../../../../../../tmp/orchestrator_pwned.txt':253C '/.ssh/authorized_keys':308C '402':147C '409':148C '423':149C 'absolut':190C 'action':94C,130C,207C,244C,285C 'actionstatus':231C 'actionstatus.approved':258C 'actionstep':218C,229C,240C 'actiontyp':230C 'actiontype.file':246C 'agent':108C,298C 'allow':103C 'anyon':282C 'appli':159C,262C,271C,288C 'arbitrari':112C,211C,278C 'attack':105C 'bashrc':309C 'bound':195C 'charact':223C 'code':151C,181C,313C 'compromis':107C 'concaten':166C 'configur':117C 'construct':164C,215C 'contain':97C 'content':255C 'corrupt':318C 'could':295C 'creat':203C,247C 'critic':305C 'descript':248C 'detail':143C 'directori':119C,199C 'drop':137C 'e.g':307C 'edit':206C 'execut':138C,314C 'fail':182C 'featur':96C 'file':113C,135C,202C,205C,212C,235C,250C,279C,306C 'final':189C 'flaw':209C 'generat':300C 'host':142C 'id':241C 'impact':274C 'import':228C 'lead':310C 'line':146C 'locat':144C 'malici':129C,217C,249C,293C 'method':161C 'modif':213C,289C 'orchestr':95C,227C,261C,286C 'outsid':114C,236C 'overwrit':132C,304C 'param':254C 'path':99C,123C,128C,162C,169C,191C,221C,270C 'payload':139C,219C,232C 'permit':210C 'plan':302C 'poc':214C 'praisonai.cli.features.action':226C 'process':201C 'prompt':294C 'pwned':256C 'python':153C,224C 'rce':315C 'relat':122C 'remain':192C 'remot':312C 'resolv':184C 'run':283C 'segment':124C 'sensit':133C 'snippet':152C 'src/praisonai/praisonai/cli/features/action_orchestrator.py':145C 'status':257C 'step':160C,239C,264C,272C,273C 'step.target':156C,175C,179C 'string':176C 'suppli':121C,174C 'system':134C,317C 'target':127C,154C,177C,233C,252C 'test':242C 'travers':100C,222C,243C,269C 'trick':296C 'type':245C 'user':173C 'user-suppli':172C 'valid':186C 'vulner':101C,150C,281C,291C 'within':193C 'workspac':118C,155C,168C,178C,198C,238C 'write':110C,251C,266C,280C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-04-05T04:59:44+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-jfxc-v5g9-38xr","url":"https://github.com/advisories/GHSA-jfxc-v5g9-38xr","severity":"critical","published_at":"2026-04-06T23:09:03+00:00","modified_at":"2026-11-16T16:00:27+00:00","first_seen_at":"2026-11-16T16:03:23+00:00","fetched_at":"2026-11-16T16:07:02+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-39305","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39305","severity":null,"published_at":"2026-04-07T17:16:36+00:00","modified_at":"2026-10-26T21:10:00+00:00","first_seen_at":"2026-11-16T16:08:50+00:00","fetched_at":"2026-11-16T16:08:50+00:00","note":null}],"documents":[{"id":170872,"url":"https://api.github.com/repos/MervinPraison/PraisonAI/security-advisories/GHSA-jfxc-v5g9-38xr","title":"Maintainer's advisory: api.github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: api.github.com"},{"id":170873,"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-jfxc-v5g9-38xr","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":"2026-04-05T04:59:44+00:00","relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"},{"id":170784,"url":"https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.113","title":"Release: github.com","kind":"release","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.00318,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-39305"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}