CVE-2026-85690
Received Received - Intake

Path Traversal in Plandex 2.2.1 Allows Arbitrary File Write

Vulnerability report for CVE-2026-85690, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-04

Last updated on: 2026-09-04

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-04
Last Modified
2026-09-04
Generated
2026-09-04
AI Q&A
2026-09-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
plandex plandex to 2.2.1 (inc)
plandex plandex 2.2.1

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Plandex 2.2.1 has a path traversal flaw in the ApplyFiles function. It allows attackers to write files outside the project directory by manipulating model output or repository files. Paths like ../../../etc/cron.d/x can escape the project root, enabling writes to sensitive locations such as shell startup files or cron jobs, which could lead to code execution.

Detection Guidance

Check Plandex version with `plandex --version` or inspect logs for suspicious file writes outside project directories. Monitor for unexpected changes in system files like ~/.bashrc, /etc/cron.d/, or other sensitive locations. Review apply operations for paths containing parent directory segments (e.g., ../../../).

Impact Analysis

An attacker could write malicious files to critical system locations like ~/.bashrc or /etc/cron.d/x. This could allow arbitrary code execution, enabling the attacker to gain control over the system where Plandex runs. The risk is higher with auto-apply modes that bypass user confirmation.

Compliance Impact

This vulnerability could violate compliance with GDPR and HIPAA by enabling unauthorized file writes to sensitive locations. Attackers could write to shell rc files or cron jobs, potentially executing malicious code with user privileges. This may lead to unauthorized data access, modification, or exfiltration, violating data protection requirements under GDPR (e.g., integrity and confidentiality principles) and HIPAA (e.g., safeguards for protected health information).

Mitigation Strategies

Upgrade Plandex to a patched version beyond 2.2.1. Disable auto-apply mode to require manual confirmation for file writes. Implement path containment checks in the ApplyFiles function to reject absolute paths and parent directory segments. Display resolved destination paths in apply prompts for transparency.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-85690. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart