CVE-2025-54795: anthropics claude-code · OS Command Injection
Affects anthropics claude-codeSource CVE Database V5
Not known to be exploited · CVSS 8.7 High : upgrade to 1.0.20 soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 1.0% chance of exploitation in 30 days – higher than 63% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.0.20
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade anthropics claude-code to 1.0.20.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| anthropics claude-code | Affected
| Fixed in
|
AI-suggested
European organizations should immediately upgrade Anthropics Claude Code to version 1.0.20 or later to remediate this vulnerability. Until the update can be applied, organizations should implement strict input validation and sanitization controls around any user-generated content fed into Claude Code context windows to prevent injection of malicious commands. Restrict access to Claude Code environments to trusted users only and monitor logs for unusual command execution patterns or unexpected confirmation prompt bypasses. Employ network segmentation to isolate development tools from critical production systems to limit blast radius in case of compromise. Additionally, implement endpoint detection and response (EDR) solutions capable of detecting anomalous OS command executions originating from Claude Code processes. Conduct security awareness training to inform developers and users about the risks of injecting untrusted content and encourage vigilance against social engineering attempts. Finally, integrate vulnerability scanning and software composition analysis into the CI/CD pipeline to detect outdated versions of Claude Code and other dependencies proactively.
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.