{"id":"EUVD-2026-27502","revision":"b9fc6b5fc30245588fcdc8107ea68b96","records":[{"revision":"b9fc6b5fc30245588fcdc8107ea68b96","observedAt":"2026-10-30T05:59:10.346+00:00","statement":{"source":"euvd","id":"EUVD-2026-27502","aliases":["CVE-2026-40068","GHSA-q5hj-mxqh-vv77"],"title":"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 …","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 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","score":7.7,"severity":null}],"references":["https://github.com/anthropics/claude-code/security/advisories/GHSA-q5hj-mxqh-vv77"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-27502","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 5, 2026, 8:52:26 PM","dateUpdated":"May 6, 2026, 3:24:52 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-27502","identifiers":["EUVD-2026-27502","CVE-2026-40068","GHSA-q5hj-mxqh-vv77"]},"retained":false,"historicalAffected":[]}],"coverage":[]}