Description
Plandex 2.2.1 contains a path traversal vulnerability in the ApplyFiles function that allows attackers to write files outside the project directory. Attackers can influence model output through poisoned repository files or attacker-controlled context to write to arbitrary locations like shell rc or cron files, achieving code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| plandex-ai | plandex | ≤ 2.2.1 | — |
References
- GitHub Issue #352 issue-tracking
- https://github.com/plandex-ai/plandex product
- https://github.com/plandex-ai/plandex/blob/cli/v2.2.1/app/cli/lib/apply.go technical-description
- VulnCheck Advisory: Plandex 2.2.1 Path Traversal via ApplyFiles third-party-advisory