{"id":"CVE-2026-25722","published":"2026-02-06T17:52:42Z","modified":"2026-02-06T18:42:01Z","title":"Claude Code Vulnerable to Command Injection via Directory Change Bypasses Write Protection","vendor":"anthropics","product":"claude-code","tier":"tail","description":{"text":"Claude Code is an agentic coding tool. Prior to version 2.0.57, Claude Code failed to properly validate directory changes when combined with write operations to protected folders. By using the cd command to navigate into sensitive directories like .claude, it was possible to bypass write protection and create or modify files without user confirmation. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window. This issue has been patched in version 2.0.57.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00742,"percentile":0.50749,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-66q4-vfjg-2qhh","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":10.15},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"anthropics","affectedVersions":[{"vendor":"anthropics","product":"claude-code","versions":["< 2.0.57"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-06T18:41:50.485891Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@anthropic-ai/claude-code","vulnerableRanges":["<2.0.57"],"patched":["2.0.57"],"from":["GHSA-66q4-vfjg-2qhh"],"provenance":"source"}],"summary":{"text":"Claude Code, Anthropic's agentic coding tool, failed to properly validate directory changes made with the cd command when combined with write operations, allowing protected folders such as .claude to be bypassed. An attacker who can get untrusted content into Claude Code's context window can use this to create or modify files in those protected locations without user confirmation, with the attack requiring user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:14Z"},"euvd":{"id":"EUVD-2026-5636","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-59829","published":"2025-10-03","fixed":"1.0.120","kev":false},{"cve":"CVE-2025-64755","published":"2025-11-21","fixed":"2.0.31","kev":false},{"cve":"CVE-2026-25723","published":"2026-02-06","fixed":"2.0.55","kev":false,"link":{"from":"CVE-2026-25723","to":"CVE-2026-25722","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@anthropic-ai/claude-code","fromFixed":"2.0.55","toFixed":"2.0.57","daysApart":0}]}},{"cve":"CVE-2026-25722","published":"2026-02-06","fixed":"2.0.57","kev":false},{"cve":"CVE-2026-21852","published":"2026-01-21","fixed":"2.0.65","kev":false},{"cve":"CVE-2026-24887","published":"2026-02-03","fixed":"2.0.72","kev":false},{"cve":"CVE-2026-24053","published":"2026-02-03","fixed":"2.0.74","kev":false}],"package":"npm:@anthropic-ai/claude-code"}}