INCIDENT MAP

Browse / Tool and Agent Misuse / CVE-2025-54795

Claude Code echo command allowed bypass of user approval prompt for command execution

CVE-2025-54795 ยท 2025-08-04 high

Class
Tool and Agent Misuse (filed by a model that read the advisory)
Technique
Code and command execution
Also involves
Indirect Prompt Injection
Affected
@anthropic-ai/claude-code (npm)
Gets past
Approval or confirmation prompt
CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
1.1% chance of exploitation in 30 days

How it works, in short

A command parsing error let an echo invocation skip the confirmation prompt, so injected untrusted content could run arbitrary commands. (Our summary, written by a model. The source text is below.)

Details

Due to an error in command parsing, it was possible to bypass the Claude Code confirmation prompt to trigger execution of an untrusted command. Reliably exploiting this requires the ability to add untrusted content into a Claude Code context window.

Users on standard Claude Code auto-update received this fix automatically after release. Current users of Claude Code are unaffected, as versions prior to 1.0.24 are deprecated and have been forced to update.

Thank you to Elad Beber (Cymulate) for reporting this issue!

References

Source: GitHub Advisory Database, used under CC BY 4.0.