CVE-2026-88968

7.7High

Published 03 Nov 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite

7.7CVSS

High

0CVSS v4.010

Attack vector
Network
Complexity
Low
Privileges
None
User action
Passive
Impact
Full C/I/A compromise
Weakness
CWE-59, CWE-367

What an attacker gets

Attackers can overwrite arbitrary user-writable files on your system. This requires the agent to execute malicious code from a repository or dependency within the sandbox.

Root cause

The Edit tool performs path validation that is vulnerable to a time-of-check to time-of-use (TOCTOU) race condition involving symlink replacement.

Affected versions

Claude Code prior to 2.1.251

CVSS v4.0 · 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Fix & remediation

Upgrade to version 2.1.251 or later. Avoid running Claude Code on untrusted repositories until the update is applied.

remediation — bash
$ npm install -g @anthropic-ai/claude-code@latest

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

Claude Code is an agentic coding tool. Prior to 2.1.251, the Edit tool validates a target using pathname and symlink resolution that is not bound to the underlying directory inode or file descriptor. On macOS, attacker-controlled code running in the Bash sandbox can atomically replace an in-workspace parent directory with a symlink after validation, causing the unsandboxed Edit implementation to overwrite a user-writable file outside the workspace. Exploitation requires attacker-controlled code to run inside the sandbox, such as from a malicious repository or dependency script. This issue is fixed in version 2.1.251.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-88968