CVE-2025-59041
criticalpriority · track · 39EPSS 0.005 · 45 %ileEUUSEPSS · scored 2026-10-23
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 6.3–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-j4h9-wv2m-wrf7Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email 2025-09-10ghsa · osvUS
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-code` `1.0.105` or later. * **Workarounds:** Open only trusted workspaces and inspect repository `.git/config` before launch; avoid inheriting untrusted Git configuration values. > Thank you to the NVIDIA AI Red Team for reporting this issue!
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (4)
External citations — patches, advisories, analysis.
- https://github.com/anthropics/claude-codePatchcnnvd
- https://github.com/anthropics/claude-code/security/advisories/GHSA-j4h9-wv2m-wrf7cnnvd
- https://github.com/anthropics/claude-code/security/advisories/GHSA-j4h9-wv2m-wrf7enisa_euvd
- https://github.com/anthropics/claude-code/security/advisories/GHSA-j4h9-wv2m-wrf7Vendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan