CVE-2025-59041CWE-94

Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email

High · published September 10, 2025

CVSS v4.0
8.7
EPSS
1%
Percentile
44.9
In the wild
Unconfirmed
What it is

⚡ A crafty email setting in Git can trigger code execution before you even hit "trust" on Claude Code! 😱 Think of it like a sneaky chef slipping a surprise ingredient into your meal before you've even taken a bite — you might end up with a recipe you never intended! This vulnerability could allow a malicious actor to execute arbitrary code on your system, effectively hijacking your coding environment and potentially compromising sensitive data. If you're working on critical projects, this could lead to unauthorized access, data loss, or even full system takeovers!

Put simply

Think of it like a sneaky chef slipping a surprise ingredient into your meal before you've even taken a bite — you might end up with a recipe you never intended! The issue resides in Claude Code's startup sequence, where it executes commands based on the `git config user.email` setting. Prior to version 1.0.105, a maliciously crafted email could lead to arbitrary code execution without any user intervention.

What to do

This vulnerability could allow a malicious actor to execute arbitrary code on your system, effectively hijacking your coding environment and potentially compromising sensitive data. If you're working on critical projects, this could lead to unauthorized access, data loss, or even full system takeovers! If you're using Claude Code, make sure to update to version 1.0.105 or later immediately. If you're on auto-update, you're in the clear! For those who update manually, check your version now and upgrade as necessary to secure your environment. You've got this! Follow these steps, and your coding playground will be safe and sound. 🛡️

The record
Technical detail
CVSS v4.0
8.7 · HIGH
Vector
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
EPSS
0.00545 · 44.9th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-09-10T15:07Z
EPSS history
Timeline
  • 10 SEP 15:07Z
    Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email
    cvelistv5