本文へ移動
English version →
高 7.5

install-artifact-from-githubに改ざんされたネイティブモジュールを実行される脆弱性

CVE-2026-73864 SecPulse初出

概要

install-artifact-from-githubは、ダウンロードしたネイティブモジュールの完全性を検証せずに読み込むため、ダウンロード経路を操作されると、インストールしたマシン上でコードを実行されるおそれがあります。影響を受けるのは1.7.0より前のnpm版で、1.7.0で修正されています。CVSSは7.5で、悪用は確認されていません。1.7.0以降へ更新してください。

AI要約

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

install-artifact-from-githubは、ダウンロードしたネイティブモジュールの完全性を検証せずに読み込むため、ダウンロード経路を操作されると、インストールしたマシン上でコードを実行されるおそれがあります。影響を受けるのは1.7.0より前のnpm版で、1.7.0で修正されています。CVSSは7.5で、悪用は確認されていません。1.7.0以降へ更新してください。

影響パッケージ

パッケージ影響を受ける版 → 修正版
uhopinstall-artifact-from-github —
npminstall-artifact-from-github
1.7.0 未満→ 1.7.0

ディストリビューション別の修正状況

各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。

原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Description

bin/install-from-cache.js downloads a prebuilt native addon (*.node) over the network and writes it directly to the artifact path with no cryptographic integrity verification of any kind — no checksum manifest, no signature, no SRI. A scan of the whole package for createHash|sha256|checksum|integrity|digest|signature finds nothing. The file is then require()-loaded by the consumer, which executes the addon's native module-init code. Anyone able to influence the download achieves code execution on the installing machine.

Affected code (v1.6.0)

  • Mirror is fully attacker-steerable via an env var, no host pinning — bin/install-from-cache.js:80:

    let assetUrl = mirrorHost || process.env[mirrorEnvVar] || 'https://github.com';
    

    re2 passes --host-var RE2_DOWNLOAD_MIRROR, so setting RE2_DOWNLOAD_MIRROR (CI config, .npmrc/env passthrough, a compromised CI job, a poisoned shell profile) redirects 100% of the download to an arbitrary host with zero pinning.

  • The write sink is a bare writeFile, no verification — bin/install-from-cache.js:185-187:

    const write = async (name, data) => {
      await fsp.mkdir(path.dirname(name), {recursive: true});
      await fsp.writeFile(name, data);   // `data` is the raw HTTP response body
    };
    
  • Cleartext transfer + silent protocol downgrade on redirect — bin/install-from-cache.js:155,165:

    const httpLib = isHttps.test(url) ? https : isHttp.test(url) ?…
    

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

参照URL

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