{"id":"CVE-2026-88968","state":"PUBLISHED","title":"Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace","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.","publishedAt":"2026-11-03T20:08:47.362Z","updatedAt":"2026-11-03T21:29:17.279Z","severity":{"score":7.7,"label":"High","version":"4.0","vector":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["anthropics claude-code"],"affected":[{"vendor":"anthropics","product":"claude-code","versions":[{"version":"< 2.1.251","status":"affected"}]}],"references":["https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv","https://github.com/anthropics/claude-code/releases/tag/v2.1.251"],"weaknesses":["CWE-59","CWE-367"],"ingestedAt":"2026-11-03T21:40:06.794Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/88xxx/CVE-2026-88968.json","commit":"b4845b91eb2b7362f501563f853d0b5ad5145890","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-88968","state":"PUBLISHED","datePublished":"2026-11-03T20:08:47.362Z","dateUpdated":"2026-11-03T21:29:17.279Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-09-10T16:02:31.341Z"},"containers":{"cna":{"title":"Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace","descriptions":[{"lang":"en","value":"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":[{"vendor":"anthropics","product":"claude-code","versions":[{"version":"< 2.1.251","status":"affected"}]}],"references":[{"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv","name":"https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.251","name":"https://github.com/anthropics/claude-code/releases/tag/v2.1.251","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-59","lang":"en","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-367","lang":"en","description":"CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-03T20:08:47.362Z"},"source":{"advisory":"GHSA-5xjx-9qx6-jcrv","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-03T21:29:03.036554Z","id":"CVE-2026-88968","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-03T21:29:17.279Z"}}]}}}