CVE-2025-54795CWE-78

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

High · published August 5, 2025

CVSS v4.0
8.7
EPSS
1%
Percentile
62.6
In the wild
Unconfirmed
What it is

⚡ A parsing error in Claude Code lets attackers bypass confirmation prompts! That's like a restaurant letting anyone walk into the kitchen without checks! 🍽️ Imagine a restaurant where anyone can just waltz right into the kitchen without showing a reservation or ID, leading to untrusted individuals messing with the chefs' recipes. This vulnerability allows similar access to execute untrusted commands without any confirmation! An attacker with the ability to inject untrusted content can unleash unwanted commands, leading to unauthorized access and potentially devastating consequences for the code execution environment. In a worst-case scenario, this could result in data breaches or compromised systems—definitely not a dinner party anyone wants to host!

Put simply

Imagine a restaurant where anyone can just waltz right into the kitchen without showing a reservation or ID, leading to untrusted individuals messing with the chefs' recipes. This vulnerability allows similar access to execute untrusted commands without any confirmation! CVE-2025-54795 involves a command parsing flaw in versions below 1.0.20 of Claude Code, allowing attackers to bypass confirmation prompts and execute untrusted commands simply by adding their inputs into a context window.

What to do

An attacker with the ability to inject untrusted content can unleash unwanted commands, leading to unauthorized access and potentially devastating consequences for the code execution environment. In a worst-case scenario, this could result in data breaches or compromised systems—definitely not a dinner party anyone wants to host! Upgrade to Claude Code version 1.0.20 immediately to patch this vulnerability. Additionally, review your application's handling of untrusted content to ensure no other similar weaknesses are present. Security audits are a great way to catch anything else that might be lurking! You've got this! By following these steps, you’ll keep your code execution environment safe and sound. 🛡️

The record
Technical detail
CVSS v4.0
8.7 · HIGH
Vector
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
0.01004 · 62.6th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-08-05T00:07Z
EPSS history
Timeline
  • 05 AUG 00:07Z
    Claude Code echo command allowed bypass of user approval prompt for command execution
    cvelistv5