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

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

anthropics / claude-code

に公開されました。修正済みバージョンは @anthropic-ai/claude-code 2.1.251 です。4 つの PoC ソースのいずれにも未掲載です。CISA KEV には現時点で未掲載です。

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]、GitHub advisory GHSA-5xjx-9qx6-jcrv
link following
CWE-59, stated by the CNA GitHub_M、NVD, republishing [email protected]、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
現在の段階
PAT
公開日時
CVSS 基本値
7.7 HIGH v4.0

ライフサイクル

横軸は UTC。点=分単位、幅広の帯=日付のみ、白抜き=不明または推定。
日時不明
DIS公開
11-03T20:08Z
PAT修正
@anthropic-ai/claude-code 2.1.251
ANA解析
記録なし
POCPoC
記録なし
ITW悪用
記録なし
KEVKEV
記録なし

概要

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.

イベント履歴

+DIS公開

GitHub_M が CVE レコードを公開。CVSS 基本値 7.7(重要)。

出典 cvelist · nday が に一括取り込み · 生データ
{
  "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"
  }
}
日時不明ソースに時刻なし
+PAT修正版公開

アドバイザリ記載の修正済みバージョン:@anthropic-ai/claude-code 2.1.251。アドバイザリの公開は 。修正版そのもののリリース日時は記録なし。

出典 ghsa GHSA-5xjx-9qx6-jcrv · nday が に一括取り込み · 生データ
{
  "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.

研究者の投稿

過去 7 日間に 0 人の研究者が言及

リストの研究者が X でこの CVE に触れた投稿です。原文のまま表示し、nday は検証していません。

リストの研究者が X でこの CVE に触れた投稿は、まだ収集していません。

Discussion

0 comments

No comments yet.