SecurityContext

CVE-2025-59041: Claude Code - Command Injection

  • Cve: CVE-2025-59041
  • Name: Claude Code - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary code before user accepts workspace trust, potentially compromising the system.
  • Remediation: Update to version 1.0.105 or the latest version.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirements: Attacker needs malicious git user email configuration
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00545
  • Epss percentile: 0.46336
  • Assignee: [email protected]
  • Published at: 2025-09-10T16:15:41Z
  • Age in days: 440
  • Modified at: 2026-06-17T09:45:29Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-59041
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type

Cwe

IdName
CWE-94Improper Control of Generation of Code

Hackerone

  • Reports: 1
  • Rank: 5211

References

UrlSourceTags
https://github.com/anthropics/claude-code/security/advisories/GHSA-j4h9-wv2m-wrf7nvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
anthropic:claude_code< 1.0.105nonvd/v1/products/anthropic/claude_code

Projects

RepositoryLink kindsIndexedUrl
anthropics/claude-codepackage, security_advisoryyes/v1/repositories/anthropics/claude-code

Index

  • Repositories: 1
  • Repositories high signal: 1
  • Packages: 1

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts