gcdRadar
archive/Patch now/AIR-2026-0598
closedclosed 24 Apr 2026Patch now2 Disclosed vulnerabilityAI

CVE-2026-40068: Claude Code Trust Dialog Bypass via Git Worktree

Claude Code

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

CVSS
7.7
EPSS
<0.01 · top 76% · 2026-11-13
fix status
Fix status unknown
first report
24 Apr 2026
last update
5 May 2026

Timeline · 2

  1. 24 Apr 2026CVE-2026-40068: Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution
  2. 5 May 2026CVE-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…

Sources · 2

Titles and links belong to their publishers. The summary above is written by gcdRadar in its own words; data is CC BY-SA 4.0.

Classification

AI role
Attack on AI
categories
Infrastructure vulnerability
severity
2 · Disclosed vulnerability
fix status
Fix status unknown
targets
Anthropic, Framework / tooling
owasp llm top 10
LLM03:2025 Supply Chain
mitre atlas
no technique for these categories
dates
happened 24 Apr 2026 · first reported 24 Apr 2026
origin
GitHub Advisory Database
Vulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
record
confidence 0.95 · created 2026-10-18 07:00Z · updated 2026-10-18 10:04Z

Lane, AI role, categories and severity come from the classifier; the OWASP and ATLAS rows are derived from the categories. How these are assigned

Copy a brief

This record as a short Markdown brief, for a ticket, a chat or a coding agent.

the brief as text
# CVE-2026-40068: Claude Code Trust Dialog Bypass via Git Worktree

https://gcdradar.vercel.app/incidents/cve-2026-40068-claude-code-trust-dialog-bypass-via-git-workt · AIR-2026-0598 · closed 2026-04-24

- Lane: Patch now
- Severity: 2 (Disclosed vulnerability)
- Fix status: Fix status unknown
- First reported: 2026-04-24
- AI role: Attack on AI
- Products: Claude Code
- CVE ids: CVE-2026-40068
- CVSS: 7.7

## 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.

## What to do

No action recorded; read the sources below and the vendor's advisory.

## Latest updates

- 2026-05-05: 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… (https://nvd.nist.gov/vuln/detail/CVE-2026-40068)
- 2026-04-24: CVE-2026-40068: Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution (https://github.com/advisories/GHSA-q5hj-mxqh-vv77)

## Sources

- 2026-04-24 GitHub Advisory Database: CVE-2026-40068: Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution https://github.com/advisories/GHSA-q5hj-mxqh-vv77
- 2026-05-05 NVD: 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… https://nvd.nist.gov/vuln/detail/CVE-2026-40068

Verify against the vendor's advisory before changing production. Data CC BY-SA 4.0, https://gcdradar.vercel.app.

Related

  1. closed7.4
    Claude Desktop CVE-2026-44467: Claude Desktop SSH Remote Development Verification Flaw

    Patch now · Disclosed · since 13 May 2026 · CVE-2026-44467

    AI
  2. closed8.5
    Claude Desktop CVE-2026-44470: Claude Desktop CoworkVMService File Creation Vulnerability

    Patch now · Disclosed · since 13 May 2026 · CVE-2026-44470

    AI
  3. closed10.0
    Claude Code + SDKs CVE-2026-39861: Claude Code Sandbox Escape via Symlink

    Patch now · Disclosed · since 21 Apr 2026 · CVE-2026-39861

    AI
  4. closed7.3
    Claude Code + SDKs CVE-2026-35603: Claude Code Insecure Configuration Loading LPE

    Patch now · Disclosed · since 17 Apr 2026 · CVE-2026-35603

    AI
  5. closed9.2
    Claude Code + SDKs CVE-2026-96620: Claude Agent SDK Command Injection Vulnerability

    Patch now · Disclosed · since 16 Oct 2026 · CVE-2026-96620

    AI
  6. closed7.5
    Claude Code + SDKs CVE-2026-86063: Claude Code plugin installation flow hash pin bypass vulnerability

    Patch now · Disclosed · since 13 Oct 2026 · updated 15 Oct 2026 · CVE-2026-86063

    AI