{
 "id": "AIR-2026-0598",
 "slug": "cve-2026-40068-claude-code-trust-dialog-bypass-via-git-workt",
 "title": "CVE-2026-40068: Claude Code Trust Dialog Bypass via Git Worktree",
 "summary": "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.",
 "type": "attack_on_ai",
 "categories": [
  "infra_vuln"
 ],
 "severity": 2,
 "targets": [
  "Anthropic",
  "framework_or_tooling"
 ],
 "products": [
  "Claude Code"
 ],
 "incident_date": "2026-04-24",
 "incident_date_precision": "day",
 "first_reported": "2026-04-24",
 "sources": [
  {
   "url": "https://github.com/advisories/GHSA-q5hj-mxqh-vv77",
   "publisher": "GitHub Advisory Database",
   "title": "CVE-2026-40068: Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution",
   "published_at": "2026-04-24"
  },
  {
   "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40068",
   "publisher": "NVD",
   "title": "CVE-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…",
   "published_at": "2026-05-05"
  }
 ],
 "source_count": 2,
 "confidence": 0.95,
 "status": "published",
 "origin": "seed_ghsa",
 "tags": [
  "CVE-2026-40068",
  "spoofing"
 ],
 "created_at": "2026-10-18T07:00:14.101Z",
 "updated_at": "2026-10-18T10:04:21.885Z"
}
