Skip to content

CVE-2026-25723 Claude Code Vulnerable to Command Injection via Piped sed Command Bypasses File Write Restrictions

HighCVSS 7.7 EPSS 0.39%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
Anthropic claude code < 2.0.55 2.0.55 Fixed
anthropic-ai @anthropic-ai/claude-code(npm) < 2.0.55 2.0.55 Fixed
anthropics claude-code = < 2.0.55 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
anthropics claude-code = < 2.0.55 No fix listed
anthropic-ai @anthropic-ai/claude-code(npm) < 2.0.55 2.0.55
Anthropic claude code < 2.0.55 2.0.55

References