8.7high
Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.61% (higher than 50% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-j4h9-wv2m-wrf7
Description
Claude Code is an agentic coding tool. At startup, Claude Code executed a command templated in with `git config user.email`. Prior to version 1.0.105, a maliciously configured user email in git could be used to trigger arbitrary code execution before a user accepted the workspace trust dialog. Users on standard Claude Code auto-update will have received this fix automatically. Users performing manual updates are advised to update to version 1.0.105 or the latest version.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| anthropics claude-code | < 1.0.105 | CVE List |
| @anthropic-ai/claude-code (npm) | before 1.0.105 | GitHub Advisory Database |
| anthropic claude_code | before 1.0.105 | NVD |
All scores
| GitHub_M | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
Claude Code is an agentic coding tool. At startup, Claude Code executed a command templated in with `git config user.email`. Prior to version 1.0.105, a maliciously configured user email in git could be used to trigger arbitrary code execution before a user accepted the workspace trust dialog. Users on standard Claude Code auto-update will have received this fix automatically. Users performing manual updates are advised to update to version 1.0.105 or the latest version.
GitHub Advisory Database
At startup, Claude Code constructed a shell command that interpolated the value of git config user.email from the current workspace. If an attacker controlled the repository’s Git config (e.g., via a malicious .git/config) and set user.email to a crafted payload, the unescaped interpolation could trigger arbitrary command execution before the user accepted the workspace-trust dialog. The issue affects versions prior to 1.0.105. The fix in 1.0.105 avoids executing commands built from untrusted configuration and properly validates/escapes inputs.
- Patches: Update to
@anthropic-ai/claude-code1.0.105or later. - Workarounds: Open only trusted workspaces and inspect repository
.git/configbefore launch; avoid inheriting untrusted Git configuration values.
Thank you to the NVIDIA AI Red Team for reporting this issue!
NVD (es)
Claude Code es una herramienta de codificación agéntica. Al iniciar, Claude Code ejecutó un comando plantillado con 'git config user.email'. Antes de la versión 1.0.105, un correo electrónico de usuario configurado maliciosamente en git podría utilizarse para desencadenar la ejecución de código arbitrario antes de que un usuario aceptara el cuadro de diálogo de confianza del espacio de trabajo. Los usuarios con la actualización automática estándar de Claude Code habrán recibido esta corrección automáticamente. Se aconseja a los usuarios que realizan actualizaciones manuales actualizar a la versión 1.0.105 o a la última versión.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-59041 changed 2025-10-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-j4h9-wv2m-wrf7 changed 2025-09-25 | CC-BY-4.0 |
| NVD | CVE-2025-59041 changed 2026-06-17 | Public domain |