ZeroHour

CVE-2026-85690

niche

Path Traversal in Plandex 2.2.1 Enables Arbitrary File Writes and Code Execution

CVSS 4.0
8.5 high
EPSS
<1%p5
Published
()
Modified
AI analysis

Plandex, an AI coding tool whose ApplyFiles function writes file changes generated by a language model, contains a path traversal vulnerability (CWE-22) in version 2.2.1 that fails to confine writes to the project directory. An attacker who can poison files in a repository the tool operates on, or supply attacker-controlled context, can influence the model's output so that ApplyFiles writes to arbitrary filesystem locations such as shell rc files or cron files. By planting a malicious shell rc or cron entry, the attacker achieves code execution on the host running Plandex. Any user running Plandex 2.2.1 against untrusted repositories or context is affected, and the CVSS 4.0 vector (AV:L, UI:P) indicates exploitation requires this kind of influence over the tool's inputs plus user interaction rather than direct remote access. No public proof-of-concept, CISA KEV listing, or confirmed in-the-wild exploitation is known, and EPSS estimates only a 0.2% chance of exploitation in the next 30 days.

What to do: Upgrade to a patched Plandex release newer than 2.2.1 as soon as one is published (the fixed version is not specified in the available data). Until then, treat AI-proposed file paths as untrusted when running Plandex against untrusted repositories, and audit shell rc files and cron entries on affected hosts for unexpected modifications.

Affected
Plandex2.2.1
Estimated exposure
nichelikely hundreds to low thousands of self-hosted instances/users at most; no public install metrics available — Plandex is a niche open-source, self-hosted developer tool with no published active-install counts or internet-exposure scan data, and its local-vector CVSS limits plausible victims to developers running it against untrusted repositories…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Weakness
CWE-22
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.