llamaCVEVulnerability Intelligence
/
Claude Code

CVE-2026-88968

Claude Code file write outside workspace via race in Edit tool

Code running in the Bash sandbox can make the Edit tool overwrite user-writable files outside the project.

Specific setups onlyParche disponiblesymlink following
Descargar PNG JSON
CVSS 4.0
7.7
Alta
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -67 d de la divulgación
Exposición15 dDesde la divulgación, 3 nov 2026, 3:08 p. m.
Detección7 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +2
Explotación
Remediación
Parche 2.1.251
Monitoreo
Detectada +2
Fuente: OSV
Verificada
28 ago 26
3 nov 26
9 nov 26
18 nov 26
19 nov 26
28 ago 26
18 sept 26
9 oct 26
29 oct 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 2.1.251 @anthropic-ai/claude-code · -67 d desde divulgación
Divulgación Publicada CVE-2026-88968 divulgada · CVSS 7.7 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: ENISA EUVD Registro visto por primera vez en ENISA EUVD
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0

Claude Code, the agentic coding tool, is affected on macOS before the fixed release. An attacker who can run code inside the Bash sandbox, such as through a malicious repository or dependency script, could trick the Edit tool into overwriting a user-writable file outside the project workspace.

Claude Code on macOS, where code running inside the Bash sandbox can make the Edit tool overwrite a user-writable file outside the workspace. Fixed in 2.1.251.

¿Qué significa?A race condition (TOCTOU) in Claude Code's Edit tool lets a process running inside the Bash sandbox cause the unsandboxed Edit implementation to overwrite an attacker-selected, user-writable file outside the workspace.
¿Quién está afectado?The bug affects the anthropics claude-code package before version 2.1.251 on macOS, and it requires the ability to run attacker-controlled code inside the Bash sandbox, such as through a malicious repository or dependency script. To check an installed version, run claude --version.
¿Qué hacer?Upgrade claude-code to version 2.1.251 or later, which is the listed fixed version.
Descripción original del registro (GitHub_M)

Claude Code is an agentic coding tool. Prior to 2.1.251, the Edit tool validates a target using pathname and symlink resolution that is not bound to the underlying directory inode or file descriptor. On macOS, attacker-controlled code running in the Bash sandbox can atomically replace an in-workspace parent directory with a symlink after validation, causing the unsandboxed Edit implementation to overwrite a user-writable file outside the workspace. Exploitation requires attacker-controlled code to run inside the sandbox, such as from a malicious repository or dependency script. This issue is fixed in version 2.1.251.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Runs on macOS“On macOS, a process running inside Claude Code's Bash sandbox could exploit”
02
Attacker must run code inside the Bash sandbox, e.g. via a malicious repository or dependency script“Exploiting this required the ability to run attacker-controlled code inside the sandbox”
¿Quién debe revisar?Developers running Claude Code before 2.1.251 on macOS, especially where the Bash sandbox runs untrusted repository or dependency scripts.
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:P
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:P
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

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

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@anthropic-ai/claude-code
Corregida 2.1.251 -67 d 2.1.325 no afectada
Versiones corregidas2.1.251
Explotación

Arsenal público

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

Referencias
Fabricantehttps://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv
Otrahttps://github.com/anthropics/claude-code/releases/tag/v2.1.251

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