CVE-2026-88968 Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Red Hat
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.
Upgrade path
3 packages: 1 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/devspaces/pluginregistry-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| anthropic-ai @anthropic-ai/claude-code(npm) | < 2.1.251 | 2.1.251 | Fixed |
| anthropics claude-code | = < 2.1.251 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| anthropics claude-code | = < 2.1.251 | No fix listed |
| redhat/devspaces/pluginregistry-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| anthropic-ai @anthropic-ai/claude-code(npm) | < 2.1.251 | 2.1.251 |
References
- https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv vendor-advisory
- https://github.com/anthropics/claude-code/releases/tag/v2.1.251
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2566282 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-116209 third-party-advisory