OS Command Injection in Claude Code - CVE-2026-25723
Published: April 30, 2026
Claude Code
Anthropic
Description
The vulnerability allows a remote attacker to execute arbitrary commands and write files outside intended restrictions.
The vulnerability exists due to command injection in the piped sed command handling in Claude Code when processing commands that use piped sed operations with the echo command. A remote attacker can send a specially crafted command to execute arbitrary commands and write files outside intended restrictions.
Exploitation requires the ability to execute commands through Claude Code with the "accept edits" feature enabled.