Skip to main content
CVE-2025-59041VulnerabilityPublished Updated

CVE-2025-59041: anthropics claude-code · Code Injection

Affects anthropics claude-codeSource CVE Database V5

0

Not known to be exploited · CVSS 8.7 High : upgrade to 1.0.105 soon.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 45% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.0.105
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Sep 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Upgrade anthropics claude-code to 1.0.105.

Affected software

ProductAffectedFixed in
anthropics claude-codeAffected
  • <1.0.105
Fixed in
  • 1.0.105

AI-suggested

1. Immediately update Claude Code to version 1.0.105 or later to apply the official patch. 2. For environments where immediate updating is not feasible, restrict or sanitize git user email configurations to prevent injection of malicious code. 3. Implement monitoring and alerting for unusual process executions or command invocations during Claude Code startup. 4. Enforce strict workspace trust policies and consider additional manual verification steps before enabling workspace features. 5. Use endpoint detection and response (EDR) tools to detect anomalous behaviors indicative of code injection or RCE. 6. Educate developers and IT staff about the risks of malicious git configurations and the importance of verifying repository metadata. 7. Review and harden startup scripts and environment configurations to minimize reliance on external inputs without validation. 8. Employ network segmentation to limit potential lateral movement from compromised developer machines. 9. Regularly audit software supply chains and development tools for vulnerabilities and timely patching.

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.

References

Community reviews

Loading reviews…