OS Command Injection in Claude Code - CVE-2025-54795

 

OS Command Injection in Claude Code - CVE-2025-54795

Published: April 30, 2026


Vulnerability identifier: #VU128530
CSH Severity: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2025-54795
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Claude Code
Software vendor:
Anthropic

Description

The vulnerability allows a remote attacker to execute arbitrary commands.

The vulnerability exists due to command injection in the echo command parser when processing untrusted content in a Claude Code context window. A remote attacker can add crafted untrusted content to bypass the confirmation prompt and execute arbitrary commands.

Reliable exploitation requires the ability to add untrusted content into a Claude Code context window.


Remediation

Install security update from vendor's website.

External links