CVE-2025-59041: high-severity vulnerability in anthropics claude-code
Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
Claude Code runs commands based on your git email settings without checking them first. An attacker could set a malicious email in git configuration to run harmful code on your computer before you even open a project.
Claude Code unsafely executes templated commands derived from `git config user.email` at startup before workspace trust validation occurs. An attacker with local git repository write access can inject arbitrary shell commands via a malicious email configuration, achieving code execution with the privileges of the Claude Code process prior to user consent mechanisms.
In the same product, most dangerous first.