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

Published Sep 10, 2025
·
Updated

At startup, Claude Code executed a command templated in with git config user.email. 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 the latest version.

Thank you to the NVIDIA AI Red Team for reporting this issue!

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
Claude Claude Code<1.0.105
npm/@anthropic-ai/claude-code<1.0.105
1.0.105
anthropic Claude Code Node.js<1.0.105

Event History

Sep 10, 2025
CVE Published
via MITRE·03:07 PM
Data Sourced
via MITRE·03:07 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
Affected Software
Advisory Published
via GitHub·08:29 PM
Data Sourced
via GitHub·08:29 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-59041?

CVE-2025-59041 has a critical severity level due to its potential for arbitrary code execution.

2

How do I fix CVE-2025-59041?

To fix CVE-2025-59041, upgrade Claude Code to version 1.0.105 or later.

3

What versions of Claude Code are affected by CVE-2025-59041?

CVE-2025-59041 affects all versions of Claude Code prior to version 1.0.105.

4

What can happen if CVE-2025-59041 is exploited?

If CVE-2025-59041 is exploited, it can lead to arbitrary code execution without user consent.

5

Who is responsible for addressing the CVE-2025-59041 vulnerability?

The responsibility for addressing CVE-2025-59041 lies with the developers of Claude Code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203