MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-40068GHSA-q5hj-mxqh-vv77

Claude Code arbitrary code execution via git worktree commondir trust dialog bypass

Not on CISA KEVCVSS 7.7 (v4.0)
  • Overview

Summary

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

See the full record, free

  • Every source, score and reference in one place
  • Timeline and related records
  • Watch an entry and get an alert when it changes

Sources and credits

  • CVE List Source: CVE Program (cve.org)
  • GitHub Advisory DB Source: GitHub Advisory Database (CC BY 4.0)