Skip to main content
VulnerabilityPublished Updated

CVE-2025-64755: anthropics claude-code · OS Command Injection

Affects anthropics claude-codeSource CVE Database V5

0

Not known to be exploited · CVSS 8.7 High : upgrade to 2.0.31 soon.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GitHubanthropics/claude-codepkg:github/anthropics/claude-codeOther threatsAffected
  • <2.0.31
Fixed in
  • 2.0.31

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Immediately upgrade all instances of Claude Code to version 2.0.31 or later, where the vulnerability is patched.
  2. Restrict access to Claude Code to trusted users only, minimizing the risk of exploitation via social engineering or accidental triggering.
  3. 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.
  4. Monitor file integrity on systems running Claude Code using tools like tripwire or OS-integrated file integrity monitoring to detect unauthorized changes promptly.
  5. Educate developers and users about the risks of interacting with untrusted inputs or commands within the tool to reduce inadvertent exploitation.
  6. Review and harden the CI/CD pipelines and build environments that integrate Claude Code to prevent propagation of malicious changes.
  7. 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.

References

Community reviews

Loading reviews…