# CVE-2026-88968: Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace

> CVE-2026-88968: Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace. CVSS 7.7 (CVSS 4.0).

Canonical: https://rewindex.com/cve/CVE-2026-88968
Last updated: 2026-11-03T22:19:50Z

- Published: 2026-11-03 20:08 UTC · Updated: 2026-11-03 22:19 UTC · Assigner: GitHub\_M
- CVSS: 7.7 (CVSS 4.0) · Severity: High
- EPSS: 0.32%, 25th percentile (scored 2026-11-10)
- CISA KEV: no
- CWE: CWE-367, CWE-59

## 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.

## Affected vendors and products

- anthropics: claude-code

## Tracked companies

- [Anthropic](https://rewindex.com/company/anthropic.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-88968)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-88968)
- [https://github.com/anthropics/claude-code/releases/tag/v2.1.251](https://github.com/anthropics/claude-code/releases/tag/v2.1.251)
- [https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv](https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-88968 · Markdown: https://rewindex.com/cve/CVE-2026-88968.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-88968 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-11-11T04:21:43.307Z
