CVE-2026-55607

Claude Code is an agentic coding tool. From 2.1.38 until 2.1.163, Claude Code's worktree handling allowed creation of worktrees named ".git" and navigation to worktrees outside the sandbox context, enabling git directory confusion attacks. By exploiting symlink manipulation and git fsmonitor execution during worktree operations, an attacker could overwrite files in the user's home directory (such as .zshenv), leading to code execution outside of seatbelt sandbox restrictions. Reliably exploiting this required the user to clone a malicious repository containing prompt injection content and run Claude Code against it. This vulnerability is fixed in 2.1.163.
Configurations

Configuration 1 (hide)

cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*

History

25 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) Claude Code es una herramienta de codificación agéntica. Desde 2.1.38 hasta 2.1.163, el manejo de worktrees de Claude Code permitía la creación de worktrees llamados ’.git’ y la navegación a worktrees fuera del contexto de la sandbox, habilitando ataques de confusión de directorio git. Al explotar la manipulación de symlinks y la ejecución de git fsmonitor durante las operaciones de worktree, un atacante podría sobrescribir archivos en el directorio de inicio del usuario (como .zshenv), lo que llevaba a la ejecución de código fuera de las restricciones de la sandbox de seatbelt. Explotar esto de forma fiable requería que el usuario clonara un repositorio malicioso que contuviera contenido de inyección de prompts y ejecutara Claude Code contra él. Esta vulnerabilidad está corregida en 2.1.163.

Information

Published : 2026-06-29 15:16

Updated : 2026-10-25 21:10


NVD link : CVE-2026-55607

Mitre link : CVE-2026-55607

CVE.ORG link : CVE-2026-55607


JSON object : View

Products Affected

anthropic

  • claude_code
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CWE-59

Improper Link Resolution Before File Access ('Link Following')

CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')