本文へ移動
English version →
高 8.0

isomorphic-gitに任意のファイルを書き換えられる脆弱性、修正版は1.38.8

CVE-2026-86017 SecPulse初出

概要

isomorphic-gitのgit cherry-pick処理に、シンボリックリンクを経由して作業ツリーの外のファイルへ書き込まれる脆弱性が見つかりました。1.38.8より前のバージョンが影響を受け、任意のファイルの改ざんやコード実行につながるおそれがあります。修正版の1.38.8に更新してください。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

isomorphic-gitのgit cherry-pick処理に、シンボリックリンクを経由して作業ツリーの外のファイルへ書き込まれる脆弱性が見つかりました。1.38.8より前のバージョンが影響を受け、任意のファイルの改ざんやコード実行につながるおそれがあります。修正版の1.38.8に更新してください。

影響パッケージ

パッケージ影響を受ける版 → 修正版
isomorphic-gitisomorphic-git —
npmisomorphic-git
1.38.8 未満→ 1.38.8
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Summary

There is an arbitrary file write vulnerability in isomorphic-git (verified on v1.38.7). When applying tree changes during git cherry-pick, the helper applyTreeChanges materializes files by joining the worktree root with the entry path and writing the blob contents, but it never checks whether any leading path component is a symbolic link. An attacker who can cause a victim repository to contain a tracked symlink such as link -> / can later supply a cherry-pick tree containing link/tmp/; isomorphic-git follows the symlink and writes the file outside the worktree. This vulnerability may lead to remote code execution, privilege escalation, data corruption, or denial of service.

Details

The vulnerable logic is in applyTreeChanges at src/utils/walkerToTreeEntryMap.js:260-295. For every changed blob it builds the on-disk path and writes it directly:

// src/utils/walkerToTreeEntryMap.js:260-295
// apply the changes to work dir
await acquireLock({ fs, gitdir, dirRemoved, ops }, async () => {
  for (const op of ops) {
    const currentFilepath = join(dir, op.filepath)
    switch (op.method) {
      // ...
      case 'write':
        // only writes if file is not in the removedDirs
        if (
          !dirRemoved.some(removedDir =>
            currentFilepath.startsWith(removedDir)
          )
        ) {
          const { object } = await _readObject({
            fs,
            cache: {},
            gitdir,
            oid: o…

出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく