llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · @anthropic-ai/claude-code

GHSA-J4H9-WV2M-WRF7

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

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -6 d de la divulgación
Exposición435 dDesde la divulgación, 10 sept 2025, 3:29 p. m.
Detección432 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 1.0.105
Monitoreo
Detectada
4 sept 25
10 sept 25
25 sept 25
17 nov 26
19 nov 26
4 sept 25
24 dic 25
13 abr 26
1 ago 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.0.105 @anthropic-ai/claude-code · -6 d desde divulgación
Divulgación Publicada GHSA-J4H9-WV2M-WRF7 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

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.

  • Patches: Update to `@anthropic-ai/claude-code` `1.0.105` or later.
  • Workarounds: Open only trusted workspaces and inspect repository `.git/config` before launch; avoid inheriting untrusted Git configuration values.

> Thank you to the NVIDIA AI Red Team for reporting this issue!

Versiones

Rangos afectados

Afectada Corregida Última
@anthropic-ai/claude-code< 1.0.105
1.0.105
2.1.325
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@anthropic-ai/claude-code
Corregida 1.0.105 -6 d 2.1.325 no afectada
Versiones corregidas1.0.105
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-59041
Otrahttps://github.com/anthropics/claude-code/security/advisories/GHSA-j4h9-wv2m-wrf7
Otrahttps://github.com/anthropics/claude-code
Otrahttps://www.npmjs.com/package/@anthropic-ai/claude-code/v/1.0.105

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.