{"id":"CVE-2026-25723","published":"2026-02-06T17:52:59Z","modified":"2026-02-06T18:40:54Z","title":"Claude Code Vulnerable to Command Injection via Piped sed Command Bypasses File Write Restrictions","vendor":"anthropics","product":"claude-code","tier":"tail","description":{"text":"Claude Code is an agentic coding tool. Prior to version 2.0.55, Claude Code failed to properly validate commands using piped sed operations with the echo command, allowing attackers to bypass file write restrictions. This vulnerability enabled writing to sensitive directories like the .claude folder and paths outside the project scope. Exploiting this required the ability to execute commands through Claude Code with the \"accept edits\" feature enabled. This issue has been patched in version 2.0.55.","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.00565,"percentile":0.40719,"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-mhg7-666j-cqg4","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":8.14},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"anthropics","affectedVersions":[{"vendor":"anthropics","product":"claude-code","versions":["< 2.0.55"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-06T18:40:45.408037Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@anthropic-ai/claude-code","vulnerableRanges":["<2.0.55"],"patched":["2.0.55"],"from":["GHSA-mhg7-666j-cqg4"],"provenance":"source"}],"summary":{"text":"A flaw in Claude Code, Anthropic's agentic coding tool, causes it to fail to properly validate commands that pipe sed operations with echo, prior to version 2.0.55. An attacker who can get Claude Code to run such commands, with the \"accept edits\" feature enabled, can bypass file write restrictions and write to sensitive locations such as the .claude folder and paths outside the project scope; the attack requires user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:00Z"},"euvd":{"id":"EUVD-2026-5637","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-24052","published":"2026-02-03","fixed":"1.0.111","kev":false},{"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,"link":{"from":"CVE-2025-64755","to":"CVE-2026-25723","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@anthropic-ai/claude-code","fromFixed":"2.0.31","toFixed":"2.0.55","daysApart":77}]}},{"cve":"CVE-2026-25723","published":"2026-02-06","fixed":"2.0.55","kev":false},{"cve":"CVE-2026-25722","published":"2026-02-06","fixed":"2.0.57","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-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}],"package":"npm:@anthropic-ai/claude-code"}}