nday
CVE-2026-88968 GHSA-5xjx-9qx6-jcrv

Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace

anthropics / claude-code

Fecha de divulgación: . Versión corregida: @anthropic-ai/claude-code 2.1.251. Ninguna de las cuatro fuentes de PoC la recoge. No figura en el KEV de CISA.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

race condition
CWE-367, stated by the CNA GitHub_M, NVD, republishing [email protected] y GitHub advisory GHSA-5xjx-9qx6-jcrv
link following
CWE-59, stated by the CNA GitHub_M, NVD, republishing [email protected] y GitHub advisory GHSA-5xjx-9qx6-jcrv
network
AV:N in 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 (CVSS 4.0) from the CNA GitHub_M
no authentication required
PR:N in 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 (CVSS 4.0) from the CNA GitHub_M
npm
GHSA-5xjx-9qx6-jcrv: npm packages @anthropic-ai/claude-code
etapa
PAT
divulgación
cvss
7.7 HIGH v4.0

Ciclo de vida

Eje x en UTC; punto = minuto exacto, barra ancha = solo fecha, hueco = desconocida o inferida.
fecha desconocida
DISdivulgada
11-03T20:08Z
PATparcheada
@anthropic-ai/claude-code 2.1.251
ANAanalizada
sin registro aún
POCPoC
sin registro aún
ITWexplotada
sin registro aún
KEVen KEV
sin registro aún

Descripción

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no target-specific security measures to get around
Attack requirements AT:P
Present: success depends on specific deployment or execution conditions, such as a race condition, a non-default setting or a position on the network path
Privileges required PR:N
None: no account or authorization needed
User interaction UI:P
Passive: limited, involuntary interaction, such as visiting a page

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

CVSS 4.0 vector from the CVE record, scored by the CNA GitHub_M.

Registro de eventos

+DISdivulgación

GitHub_M publicó el registro CVE. CVSS 7.7, severidad alta.

fuente cvelist · nday , importación masiva · en bruto
{
  "id": 19145,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-88968",
  "occurred_at": "2026-11-03T20:08:47.362Z",
  "observed_at": "2026-11-12T15:03:42.190415Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "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",
      "version": "4.0",
      "base_score": 7.7,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2026-11-03T21:29:03.036554Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-03T20:08:47.362Z",
    "assigner_short_name": "GitHub_M"
  }
}
se desconocela fuente no indica fecha
+PATparche registrado

Versión corregida según el aviso: @anthropic-ai/claude-code 2.1.251. Aviso publicado el ; no consta cuándo se publicó el parche en sí.

fuente ghsa GHSA-5xjx-9qx6-jcrv · nday , importación masiva · en bruto
{
  "id": 18898,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-5xjx-9qx6-jcrv",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:03:36.174798Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-5xjx-9qx6-jcrv",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 0.0,
        "vector_string": null
      },
      "cvss_v4": {
        "score": 7.7,
        "vector_string": "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"
      }
    },
    "cwes": [
      {
        "name": "Improper Link Resolution Before File Access",
        "cwe_id": "CWE-59"
      },
      {
        "name": "Time-of-check Time-of-use (TOCTOU) Race Condition",
        "cwe_id": "CWE-367"
      }
    ],
    "ghsa_id": "GHSA-5xjx-9qx6-jcrv",
    "packages": [
      {
        "name": "@anthropic-ai/claude-code",
        "ecosystem": "npm",
        "first_patched_version": "2.1.251",
        "vulnerable_version_range": "< 2.1.251"
      }
    ],
    "severity": "high",
    "references": [
      "https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-88968",
      "https://github.com/anthropics/claude-code/releases/tag/v2.1.251",
      "https://github.com/advisories/GHSA-5xjx-9qx6-jcrv"
    ],
    "fix_commit_urls": [],
    "github_reviewed_at": "2026-11-09T22:42:03Z",
    "advisory_updated_at": "2026-11-09T22:42:04Z",
    "source_code_location": "https://github.com/anthropics/claude-code",
    "advisory_published_at": "2026-11-09T22:42:03Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Debate de investigadores

0 investigadores lo mencionaron en los últimos 7 días

Publicaciones en X de investigadores de la lista de nday que mencionan este CVE, tal como se publicaron. nday no las verifica.

nday aún no ha recopilado publicaciones en X de investigadores de su lista sobre este CVE.

Discussion

0 comments

No comments yet.