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.
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
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| 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 |
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.
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.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@anthropic-ai/claude-code |
Corregida | 2.1.251 | -67 d | 2.1.325 no afectada |
2.1.251Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrvhttps://github.com/anthropics/claude-code/releases/tag/v2.1.251Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
