CVE-2026-40068: Claude Code Trust Dialog Bypass via Git Worktree
Attack on AI2 Disclosed vulnerabilityInfrastructure vulnerability
Claude Code failed to validate git worktree commondir files, allowing an attacker to spoof trusted folders and bypass security warnings. Victims cloning a crafted repository would execute malicious settings hooks.
disclosed CVENo confirmed exploitation, so this record is tracked as a disclosed vulnerability and not counted as an incident. It moves into the counts if CISA or the vendor confirms exploitation. Why
Details
- type
- Attack on AIAn AI model, agent or AI-powered product was the thing exploited, abused or leaked.
- categories
- Infrastructure vulnerabilityCVEs and advisories in AI frameworks, inference servers, MCP servers, AI developer tools and hosting stacks.
- Infrastructure vulnerability
- owasp llm top 10
- mitre atlas
- no technique for these categoriesBoth rows are derived from the type and categories (OWASP 2025 edition, ATLAS release 2026.09), not classified per record. How
- severity
- 2 · Disclosed vulnerabilityCVE or vendor advisory, patched or patchable, no confirmed exploitation.
- targets
- Anthropic, Framework / tooling
- products
- Claude Code
- incident date
- 24 Apr 2026
- first reported
- 24 Apr 2026
- origin
- GitHub Advisory DatabaseVulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
- classifier confidence
- 0.95 · published at or above 0.80; see the methodology
- tags
- CVE-2026-40068 · spoofing
- record
- created 2026-10-18 07:00Z · updated 2026-10-18 10:04Z · json
Sources · 2
- 2026-04-24CVE-2026-40068: Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code ExecutionGitHub Advisory Database · github.com/advisories/GHSA-q5hj-mxqh-vv77
- 2026-05-05CVE-2026-40068: In versions 2.1.63 through 2.1.83 of Claude Code, the folder trust determination logic used the git worktree commondir file…NVD · nvd.nist.gov/vuln/detail/CVE-2026-40068
Titles and links belong to their publishers. The summary above is written by GCD AI RADAR in its own words; data is CC BY-SA 4.0.
Related incidents
- 2026-05-13CVE-2026-44467: Claude Desktop SSH Remote Development Verification Flaw2 Disclosedon AIInfra vuln1 src
- 2026-05-13CVE-2026-44470: Claude Desktop CoworkVMService File Creation Vulnerability2 Disclosedon AIInfra vuln1 src
- 2026-04-21CVE-2026-39861: Claude Code Sandbox Escape via Symlink2 Disclosedon AIInfra vuln2 src
- 2026-04-17CVE-2026-35603: Claude Code Insecure Configuration Loading LPE2 Disclosedon AIInfra vuln2 src
- 2026-10-16CVE-2026-96620: Claude Agent SDK Command Injection Vulnerability2 Disclosedon AIInfra vuln1 src
- 2026-10-13CVE-2026-86063: Claude Code plugin installation flow hash pin bypass vulnerability2 Disclosedon AIInfra vulnSupply chain2 src