Skip to main content

Plandex CVE-2026-85690

| EUVDEUVD-2026-71139 HIGH
Path Traversal (CWE-22)
2026-09-04 VulnCheck GHSA-8xmq-vqjx-27gw
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker embeds payload in repository file content
  2. Delivery
    Victim opens repository with Plandex CLI
  3. Exploit
    Poisoned content steers model output to propose path-traversing filename
  4. Install
    Victim confirms apply operation
  5. C2
    ApplyFiles writes payload outside project root
  6. Execute
    Shell rc or cron file overwritten
  7. Impact
    Payload executes on next terminal open

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to be running Plandex 2.2.1 CLI locally and to invoke the ApplyFiles workflow to apply AI-generated file changes to their working tree. The attacker must control content that is ingested as AI model context - either through files committed to a repository the victim opens with Plandex, or through another channel that injects attacker-controlled text into the model's context window. The victim must confirm the apply operation (UI:P), which provides a narrow window for detection if the developer carefully reviews proposed file paths. Exploitation is fully local: it affects only the victim's own filesystem under their user account and does not propagate to remote systems or other users without additional post-exploitation steps. No authentication to any external service is required on the attacker's part.

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, score 8.5) characterizes this as a local attack requiring user interaction but no privileges. Real-world risk is meaningful for development teams that routinely clone and analyze untrusted third-party or community repositories with AI coding tools. The AT:N metric may modestly understate attack complexity: reliably steering a language model to produce a specific path-traversing filename is probabilistic and depends on model version and prompt structure, which argues for AT:P in a more conservative assessment. That said, because the attacker controls the file content fed as context, the influence vector is concrete rather than speculative. The absence of a KEV listing and the lack of a confirmed public exploit temper urgency relative to the raw score. Impact is bounded to the victim's local workstation and user-account privileges, limiting lateral spread compared to network-reachable vulnerabilities. No public exploit has been identified at time of analysis, and exploitation requires the victim to actively invoke the apply workflow.

Exploit ScenarioDerived

An attacker publishes a malicious open-source repository containing a crafted file whose content is designed to prompt the AI model into proposing a new file at a path such as '../../.bashrc' with attacker-controlled shell commands as its content. When a developer runs Plandex against this repository and applies the AI-suggested changes, the ApplyFiles function writes the payload to the developer's shell initialization file without raising an error. The injected commands execute silently the next time the developer opens a terminal session.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 04, 2026

Path traversal in Plandex 2.2.1's ApplyFiles function allows an attacker who can influence the AI model's output - through poisoned repository files or attacker-controlled context - to write files to arbitrary locations outside the intended project directory. Targets such as shell initialization files (~/.bashrc, ~/.zshrc) and cron entries can be silently overwritten, resulting in persistent code execution under the developer's local account. No CISA KEV entry or confirmed public exploit exists at time of analysis, but the attack surface (indirect prompt injection combined with insecure file-write) is increasingly well-understood in the AI tooling threat landscape.

RemediationAI

No vendor-released patch with an exact fix version has been independently confirmed at time of analysis. Users should monitor the Plandex GitHub repository (https://github.com/plandex-ai/plandex) and issue #352 for patch availability. As a compensating control, avoid running Plandex's apply workflow against untrusted or externally-sourced repositories until a validated fix is released. Developers should manually inspect all AI-proposed file paths before confirming application, specifically checking that no resolved path escapes the project root. The most effective interim mitigation is running Plandex inside a container or restricted sandbox (e.g., a Docker container with only the project directory bind-mounted), which prevents any write from reaching the host filesystem; this adds workflow overhead but eliminates the traversal risk entirely. Restricting outbound model context to read-only files and avoiding ingestion of content from untrusted contributors also reduces the indirect prompt injection surface.

Affected VersionsENISA

plandex 0 ≤2.2.1

Affected Packages

euvd plandex no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Plandex (CPE cpe:2.3:a:plandex-ai:plandex:*:*:*:*:*:*:*:*) is a terminal-based AI coding assistant that proposes and applies file modifications to a local working tree. The ApplyFiles function, implemented in app/cli/lib/apply.go, is responsible for materializing AI-suggested file writes to disk. The root cause is CWE-22 (Path Traversal): the function does not canonicalize or validate the resolved write path against the project root boundary before performing the disk operation. Because Plandex feeds repository files as context to the underlying language model, an attacker who can embed crafted content in those files can steer the model toward generating file-creation proposals whose paths traverse outside the project directory - for example, suggesting '../../.bashrc' as a target. This is a form of indirect prompt injection: the attacker does not directly interact with the model but rather poisons the data the model ingests as context.

Know when Plandex gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.5 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.7 HIGH

Local vector; high complexity because attacker must probabilistically steer model output; scope changed since writes escape project sandbox to host filesystem.

3.1 AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Plandex 2.2.1 contains a path traversal vulnerability in ApplyFiles that allows arbitrary file writes to developer workstations when the AI model's output is influenced through repository poisoning or injected context. An attacker exploiting this could achieve persistent code execution under developer credentials, potentially accessing and modifying proprietary source code.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable ApplyFiles or restrict to transient sandbox environments only; (2) Require explicit human approval with manual diff review before allowing any file-write operations; (3) Configure strict filesystem permissions limiting tool write access to designated project directories; (4) Enable comprehensive audit logging of user-home directory and cron modifications; (5) Restrict source code repository access to verified internal sources and monitor for suspicious changes; (6) Suspend Plandex deployments in critical development contexts until a patch is publicly available.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
niche AI coding CLI tool, limited enterprise production footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy