CVE-2025-59041
HIGH 8.7CVSS 4.0Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email
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.
- Published
- 10 Sep 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-78CWE-94
- Also known as
- GHSA-j4h9-wv2m-wrf7
- Sources
- NVDJSONOSV GHSA-j4h9-wv2m-wrf7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | anthropic | claude_codecpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:* |
< 1.0.105 | 1.0.105 |
| OSV | npm | @anthropic-ai/claude-code | < 1.0.105 | 1.0.105 |
References
- https://github.com/anthropics/claude-code/security/advisories/GHSA-j4h9-wv2m-wrf7 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-59041 · ADVISORY
- https://github.com/anthropics/claude-code · PACKAGE
- https://www.npmjs.com/package/@anthropic-ai/claude-code/v/1.0.105 · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 10 Sep 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Sep 2025)