Vulnerabilities · 2025 · Anthropic
CVE-2025-59041
Anthropic Claude Code vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Claude Code. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Anthropic Claude Code runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/anthropics/claude-code/security/advisories/GHSA-j4h9-wv2m-wrf7 · Vendor Advisory
- nvd.nist.gov/vuln/detail/CVE-2025-59041
- www.npmjs.com/package/@anthropic-ai/claude-code/v/1.0.105
- github.com/advisories/GHSA-j4h9-wv2m-wrf7
- nvd.nist.gov/vuln/detail/CVE-2025-59041
- cve.org/CVERecord?id=CVE-2025-59041
More vulnerabilities in Anthropic products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.