Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-25723: Claude Code file write restriction bypass via piped sed and echo commands

Identifier
CVE-2026-25723
Published
Record updated
View JSON
Affected
  • @anthropic-ai/claude-code < 2.0.55
Fixed in
2.0.55
  • released November 26, 2025, 72 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

Claude Code, an agentic coding tool, failed to properly validate commands that combined piped sed operations with echo, letting attackers bypass file write restrictions. The flaw allowed writes to sensitive locations such as the .claude folder and paths outside the project scope, but exploitation required the ability to run commands through Claude Code with the "accept edits" feature enabled.

Mitigation

Patched in version 2.0.55.