CVE-2025-64755: anthropics claude-code · OS Command Injection
Affects anthropics claude-codeSource CVE Database V5
Not known to be exploited · CVSS 8.7 High : upgrade to 2.0.31 soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.0.31
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 21 Nov 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 2.0.31.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubanthropics/claude-codepkg:github/anthropics/claude-codeOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediately upgrade all instances of Claude Code to version 2.0.31 or later, where the vulnerability is patched.
- Restrict access to Claude Code to trusted users only, minimizing the risk of exploitation via social engineering or accidental triggering.
- Implement strict file system permissions to limit the ability of the Claude Code process to write outside designated directories, reducing the impact of potential exploitation.
- Monitor file integrity on systems running Claude Code using tools like tripwire or OS-integrated file integrity monitoring to detect unauthorized changes promptly.
- Educate developers and users about the risks of interacting with untrusted inputs or commands within the tool to reduce inadvertent exploitation.
- Review and harden the CI/CD pipelines and build environments that integrate Claude Code to prevent propagation of malicious changes.
- Employ application whitelisting and endpoint detection and response (EDR) solutions to detect anomalous behaviors related to file writes or command executions initiated by Claude Code.
Description
Claude Code is an agentic coding tool. Prior to version 2.0.31, due to an error in sed command parsing, it was possible to bypass the Claude Code read-only validation and write to arbitrary files on the host system. This issue has been patched in version 2.0.31.