Skip to content

Commit 3b4144f

Browse files
1 parent 79e1834 commit 3b4144f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

advisories/github-reviewed/2025/09/GHSA-j4h9-wv2m-wrf7/GHSA-j4h9-wv2m-wrf7.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"schema_version": "1.4.0",
33
"id": "GHSA-j4h9-wv2m-wrf7",
4-
"modified": "2025-09-10T20:29:04Z",
4+
"modified": "2025-09-25T23:42:37Z",
55
"published": "2025-09-10T20:29:04Z",
66
"aliases": [
77
"CVE-2025-59041"
88
],
99
"summary": "Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email ",
10-
"details": "At startup, Claude Code executed a command templated in with `git config user.email`. A maliciously configured user email in git could be used to trigger arbitrary code execution before a user accepted the workspace trust dialog. \n\nUsers on standard Claude Code auto-update will have received this fix automatically. Users performing manual updates are advised to update to the latest version.\n\nThank you to the NVIDIA AI Red Team for reporting this issue!",
10+
"details": "At startup, Claude Code constructed a shell command that interpolated the value of `git config user.email` from the current workspace. If an attacker controlled the repository’s Git config (e.g., via a malicious `.git/config`) and set `user.email` to a crafted payload, the unescaped interpolation could trigger arbitrary command execution **before** the user accepted the workspace-trust dialog. The issue affects versions prior to `1.0.105`. The fix in `1.0.105` avoids executing commands built from untrusted configuration and properly validates/escapes inputs.\n\n* **Patches:** Update to `@anthropic-ai/claude-code` `1.0.105` or later.\n* **Workarounds:** Open only trusted workspaces and inspect repository `.git/config` before launch; avoid inheriting untrusted Git configuration values.\n\n> Thank you to the NVIDIA AI Red Team for reporting this issue!",
1111
"severity": [
1212
{
1313
"type": "CVSS_V4",
14-
"score": "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"
14+
"score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
1515
}
1616
],
1717
"affected": [
@@ -47,10 +47,15 @@
4747
{
4848
"type": "PACKAGE",
4949
"url": "https://github.com/anthropics/claude-code"
50+
},
51+
{
52+
"type": "WEB",
53+
"url": "https://www.npmjs.com/package/@anthropic-ai/claude-code/v/1.0.105"
5054
}
5155
],
5256
"database_specific": {
5357
"cwe_ids": [
58+
"CWE-78",
5459
"CWE-94"
5560
],
5661
"severity": "HIGH",

0 commit comments

Comments
 (0)