Skip to main content
VulnerabilityPublished

CVE-2026-24887: anthropics claude-code · OS Command Injection

Affects anthropics claude-codeSource CVE Database V5

0

Not known to be exploited · CVSS 7.7 High : upgrade to 2.0.72 soon.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 4.0 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.0.72
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Feb 2026

  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 claude-code and anthropics/claude-code to 2.0.72.

Affected software

ProductAffectedFixed in
anthropicsclaude-codeAffected
  • <2.0.72
Fixed in
  • 2.0.72
GitHubanthropics/claude-codepkg:github/anthropics/claude-codeOther threatsAffected
  • <2.0.72
Fixed in
  • 2.0.72

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

AI-suggested

European organizations should immediately upgrade all instances of Claude Code to version 2.0.72 or later to remediate the vulnerability. Until upgrade is possible, restrict the ability to inject untrusted content into Claude Code context windows by implementing strict input validation and sanitization controls. Limit access to Claude Code environments to trusted users and networks, employing network segmentation and access controls to reduce exposure. Monitor logs and command execution traces for unusual or unauthorized activity indicative of exploitation attempts. Educate developers and users about the risks of executing untrusted code and the importance of applying security updates promptly. Additionally, consider deploying endpoint detection and response (EDR) solutions capable of detecting anomalous command executions. Regularly review and audit software development tools for security updates and vulnerabilities to maintain a secure development environment.

Description

Claude Code is an agentic coding tool. Prior to version 2.0.72, due to an error in command parsing, it was possible to bypass the Claude Code confirmation prompt to trigger execution of untrusted commands through the find command. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window. This issue has been patched in version 2.0.72.

References

Community reviews

Loading reviews…