# CVE-2025-59041: Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2025-09-10T15:07:50.396Z
- Modified: 2026-06-17T09:45:29.227Z
- Also known as: GHSA-j4h9-wv2m-wrf7
- Weaknesses: CWE-78, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- anthropics claude-code: < 1.0.105
- @anthropic-ai/claude-code (npm): before 1.0.105
- anthropic claude_code: before 1.0.105

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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: CVSS:4.0 High `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2025-59041](https://www.cve.org/CVERecord?id=CVE-2025-59041), CVE Terms of Use, modified 2025-10-15
- GitHub Advisory Database: [GHSA-j4h9-wv2m-wrf7](https://github.com/advisories/GHSA-j4h9-wv2m-wrf7), CC-BY-4.0, modified 2025-09-25
- NVD: [CVE-2025-59041](https://nvd.nist.gov/vuln/detail/CVE-2025-59041), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59041 · Whole record: https://cve.day/CVE-2025-59041.json · Rebuilt by cve.day 2026-11-25T22:59:04.499Z
