Code Injection in Claude Code - CVE-2025-59041

 

Code Injection in Claude Code - CVE-2025-59041

Published: April 30, 2026


Vulnerability identifier: #VU128526
CSH Severity: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2025-59041
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Claude Code
Software vendor:
Anthropic

Description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper control of code generation in the startup command handling of git config user.email when processing a maliciously configured git email value. A remote attacker can supply a specially crafted git email configuration to execute arbitrary code.

Exploitation can occur before a user accepts the workspace trust dialog.


Remediation

Install security update from vendor's website.

External links