Skip to main content
VulnerabilityPublished

CVE-2026-25722: anthropics claude-code · Improper Input Validation

Affects anthropics claude-codeSource CVE Database V5

0

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

Data as of 26 Oct 2026, 08:30 UTC

CVSS 4.0 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.0.57
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 6 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.57.

Affected software

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

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 anthropics Claude Code installations to version 2.0.57 or later to apply the official patch. Additionally, restrict or sanitize all untrusted input sources that can be injected into Claude Code context windows to prevent exploitation. Implement strict access controls and monitoring on directories like .claude to detect unauthorized changes. Employ application whitelisting and file integrity monitoring to alert on unexpected file modifications. Educate developers and users on the risks of injecting untrusted content and enforce secure coding and usage practices. Network segmentation and limiting exposure of Claude Code instances to untrusted networks can reduce attack surface. Finally, integrate vulnerability scanning and patch management processes to ensure timely updates of development tools.

Description

Claude Code is an agentic coding tool. Prior to version 2.0.57, Claude Code failed to properly validate directory changes when combined with write operations to protected folders. By using the cd command to navigate into sensitive directories like .claude, it was possible to bypass write protection and create or modify files without user confirmation. 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.57.

References

Community reviews

Loading reviews…