{"id":"CVE-2025-59041","aliases":[],"url":"https://o3.security/vulnerability/CVE-2025-59041","summary":"Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email ","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!","published":"2025-09-10T20:29:04Z","modified":"2025-09-25T23:42:37Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"@anthropic-ai/claude-code","fixedVersion":"1.0.105"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-j4h9-wv2m-wrf7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59041"},{"type":"PACKAGE","url":"https://github.com/anthropics/claude-code"},{"type":"WEB","url":"https://www.npmjs.com/package/@anthropic-ai/claude-code/v/1.0.105"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2025-09-25T23:42:37Z"}}