CVE-2025-54795
JSON

8.7high

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

Severity
8.7high CVSS:4.0 by GitHub_M
Exploit likelihood
1.09% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-x56v-x2h6-7j34

Description

Claude Code is an agentic coding tool. In versions below 1.0.20, an error in command parsing makes it 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. This is fixed in version 1.0.20.

Affected

Product or packageVersionsReported by
anthropics claude-code< 1.0.20CVE List
@anthropic-ai/claude-code (npm)before 1.0.20GitHub Advisory Database
anthropic claude_codebefore 1.0.20NVD

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Claude Code is an agentic coding tool. In versions below 1.0.20, an error in command parsing makes it 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. This is fixed in version 1.0.20.

GitHub Advisory Database

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!

NVD (es)

Claude Code es una herramienta de codificación agentica. En versiones anteriores a la 1.0.20, un error en el análisis de comandos permite omitir la solicitud de confirmación de Claude Code para activar la ejecución de un comando no confiable. Para aprovechar esto de forma fiable, es necesario poder añadir contenido no confiable a una ventana de contexto de Claude Code. Esto se ha corregido en la versión 1.0.20.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-54795 changed 2025-08-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-x56v-x2h6-7j34 changed 2025-08-05CC-BY-4.0
NVDCVE-2025-54795 changed 2026-06-17Public domain