{"id":"CVE-2025-59041","aliases":["CVE-2025-59041","GHSA-j4h9-wv2m-wrf7"],"related":[],"kind":"vulnerability","state":"published","title":"Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n*   **Patches:** Update to `@anthropic-ai/claude-code` `1.0.105` or later.\n*   **Workarounds:** Open only trusted workspaces and inspect repository `.git/config` before launch; avoid inheriting untrusted Git configuration values.\n\n> Thank you to the NVIDIA AI Red Team for reporting this issue!","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-09-10T15:07:50.396Z","modified":"2026-06-17T09:45:29.227Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-78","CWE-94"],"affected":[{"ranges":[{"version":"< 1.0.105","status":"affected"}],"vendor":"anthropics","product":"claude-code","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.105"}],"ecosystem":"npm","package":"@anthropic-ai/claude-code","purl":"pkg:npm/%40anthropic-ai/claude-code","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.105"}],"vendor":"anthropic","product":"claude_code","cpe":"cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-j4h9-wv2m-wrf7","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59041","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/anthropics/claude-code","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/package/@anthropic-ai/claude-code/v/1.0.105","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-10-15T16:00:32.713Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59041","url":"https://www.cve.org/CVERecord?id=CVE-2025-59041","licence":"CVE Terms of Use","modified":"2025-10-15T16:00:49.872Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j4h9-wv2m-wrf7","url":"https://github.com/advisories/GHSA-j4h9-wv2m-wrf7","licence":"CC-BY-4.0","modified":"2025-09-25T23:42:37.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59041","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59041","licence":"Public domain","modified":"2026-06-17T09:45:29.227Z"}],"updatedAt":"2026-11-25T22:59:04.499Z","epss":{"score":0.00615,"percentile":0.50821,"date":"2026-12-01T12:00:22.000Z"}}