---
id: "CVE-2026-39305"
page: "https://infrastack.ai/live/CVE-2026-39305"
kind: "vulnerability"
aliases: ["CVE-2026-39305", "GHSA-jfxc-v5g9-38xr"]
title: "PraisonAI Vulnerable to Arbitrary File Write / Path Traversal in Action Orchestrator"
severity: "critical"
cvss: 10.0
epss: 0.00318
exploited: false
status: "open"
category: "ai-tooling"
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"]
published_at: "2026-04-06T23:09:03+00:00"
first_seen_at: "2026-11-16T16:03:23+00:00"
updated_at: "2026-11-16T16:08:50+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-jfxc-v5g9-38xr", "first_seen_at": "2026-11-16T16:03:23+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-39305", "first_seen_at": "2026-11-16T16:08:50+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.00318, "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-39305"}]
---

# PraisonAI Vulnerable to Arbitrary File Write / Path Traversal in Action Orchestrator

Link for people: https://infrastack.ai/live/CVE-2026-39305 (this .md is for agents)

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:PraisonAI affected <= 4.5.112 fixed 4.5.113
- vendor:praison praisonai affected <= 4.5.112 fixed no fixed version listed

## How to check

- Check the installed version with `pip show praisonai` and compare it with the affected range (4.5.112 and below).
- Look for `action_orchestrator.py` under `praisonai/cli/features/` and check whether `_apply_step` validates that the resolved target stays inside the workspace.
- Confirm whether the Action Orchestrator feature is in use at all.

## Fix

- `praisonai` (PyPI): upgrade to `4.5.113`.

## Timeline

- 2026-11-16T16:03:23+00:00 ghsa https://github.com/advisories/GHSA-jfxc-v5g9-38xr
- 2026-11-16T16:08:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-39305

## Documents

- [advisory] Maintainer's advisory: api.github.com https://api.github.com/repos/MervinPraison/PraisonAI/security-advisories/GHSA-jfxc-v5g9-38xr
- [advisory] Maintainer's advisory: github.com https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-jfxc-v5g9-38xr
- [fix] Release: github.com https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.113

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
