{"id":"EUVD-2026-27502","enisaUuid":"60cabea4-b929-3c9c-a7ba-f569a8dca48a","description":"In versions 2.1.63 through 2.1.83 of Claude Code, the folder trust determination logic used the git worktree commondir file without validating its contents. An attacker could craft a malicious repository with a commondir file pointing to a path the victim had previously trusted, causing Claude Code to bypass its trust confirmation dialog and immediately execute hooks defined in `.claude/settings.json`. Exploitation requires the victim to clone the malicious repository and run Claude Code within it, and the attacker must know or guess a path the victim had already trusted. This issue has been fixed in version 2.1.84.","datePublished":"May 5, 2026, 8:52:26 PM","dateUpdated":"May 6, 2026, 3:24:52 PM","baseScore":7.7,"baseScoreVersion":"4.0","baseScoreVector":"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","references":"https://github.com/anthropics/claude-code/security/advisories/GHSA-q5hj-mxqh-vv77\n","aliases":"CVE-2026-40068\nGHSA-q5hj-mxqh-vv77\n","assigner":"GitHub_M","epss":0.31,"enisaIdProduct":[{"id":"656b83d6-b11a-384e-b523-4b2d61a5b232","product":{"name":"claude-code","vendor":{"name":"anthropics"}},"product_version":"2.1.63, \u003c 2.1.84"}],"enisaIdVendor":[{"id":"93054c90-2fdb-3509-b50d-092bd004f9d8","vendor":{"name":"anthropics"}}],"enisaIdVulnerability":[{"id":"a9b5cce0-e417-3e01-a7a3-cbfb8fa2342d","vulnerability":{"id":"CVE-2026-40068","description":"In versions 2.1.63 through 2.1.83 of Claude Code, the folder trust determination logic used the git worktree commondir file without validating its contents. An attacker could craft a malicious repository with a commondir file pointing to a path the victim had previously trusted, causing Claude Code to bypass its trust confirmation dialog and immediately execute hooks defined in `.claude/settings.json`. Exploitation requires the victim to clone the malicious repository and run Claude Code within it, and the attacker must know or guess a path the victim had already trusted. This issue has been fixed in version 2.1.84.","datePublished":"May 5, 2026, 8:52:26 PM","dateUpdated":"May 6, 2026, 3:24:52 PM","status":"PUBLISHED","baseScore":7.7,"baseScoreVersion":"4.0","baseScoreVector":"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","references":"https://github.com/anthropics/claude-code/security/advisories/GHSA-q5hj-mxqh-vv77\n","enisa_id":"EUVD-2026-27502\n","assigner":"GitHub_M","epss":0.31,"dataProcessed":"Nov 21, 2026, 7:22:41 AM","vulnerabilityProduct":[{"id":"295f5175-9198-3f74-a21e-895c15c1546a","product":{"name":"claude-code","vendor":{"name":"anthropics"}},"product_version":"2.1.63, \u003c 2.1.84"}],"vulnerabilityVendor":[{"id":"08f809a5-bd43-3f73-a7e8-ad45faffdc34","vendor":{"name":"anthropics"}}]}},{"id":"b589f1fb-be0a-33bf-9e13-d2bc02d2d03f","vulnerability":{"id":"GHSA-q5hj-mxqh-vv77","description":"Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution","datePublished":"Apr 24, 2026, 4:34:03 PM","dateUpdated":"May 8, 2026, 3:31:35 PM","baseScore":0.0,"references":"https://github.com/anthropics/claude-code/security/advisories/GHSA-q5hj-mxqh-vv77\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-40068\nhttps://github.com/anthropics/claude-code\n","enisa_id":"EUVD-2026-27502\n","aliases":"CVE-2026-40068\nGHSA-q5hj-mxqh-vv77\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:49:26 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}