{"id":"CVE-2026-85690","summary":"Plandex 2.2.1 Path Traversal via ApplyFiles","details":"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.","modified":"2026-09-06T03:47:20.762316788Z","published":"2026-09-04T14:32:34.673Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85690.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85690.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85690"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/plandex-2.2.1-path-traversal-via-applyfiles"},{"type":"REPORT","url":"https://github.com/plandex-ai/plandex/issues/352"},{"type":"PACKAGE","url":"https://github.com/plandex-ai/plandex"},{"type":"ARTICLE","url":"https://github.com/plandex-ai/plandex/blob/cli/v2.2.1/app/cli/lib/apply.go"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/plandex-ai/plandex","events":[{"introduced":"0"},{"last_affected":"fed1aa40ac2d9356e6bcbdb1881ca5bd35439e64"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"2.2.1"}],"source":"AFFECTED_FIELD"}}],"versions":["server/v2.2.1","cli/v2.2.0","server/v2.2.0","server/v2.1.8","server/v2.1.7","cli/v2.1.6+1","server/v2.1.6+1","cli/v2.1.6","server/v2.1.6","cli/v2.1.5","server/v2.1.5","server/v2.1.4","server/v2.1.3","cli/v2.1.3","cli/v2.1.2","server/v2.1.2","server/v2.1.1+1","cli/v2.1.1","server/v2.1.1","cli/v2.1.0+1","server/v2.1.0+1","cli/v2.1.0","server/v2.1.0","cli/v2.0.7+1","cli/v2.0.7","cli/v2.0.6","server/v2.0.6","cli/v2.0.5","server/v2.0.5","cli/v2.0.4","server/v2.0.4","server/v2.0.3","cli/v2.0.3","server/v2.0.2","cli/v2.0.2","server/v2.0.0+2","server/v2.0.0+1","server/v2.0.0","cli/v2.0.0","cli/v2.0.0-rc.6","cli/v2.0.0-rc.5","cli/v2.0.0-rc.4","cli/v2.0.0-rc.3","cli/v2.0.0-rc.2","cli/v2.0.0-rc.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85690.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}