本文へ移動
English version →
高 8.8

Diffusers trust_remote_codeの検査を回避され任意のコードを実行される

CVE-2026-44513 SecPulse初出

概要

Diffusers の DiffusionPipeline.from_pretrained で trust_remote_code=False を指定しても、条件によっては外部のカスタムコードが実行される脆弱性です。CVSS 3.1 基本値は 8.8 で、CWE-94(コードインジェクション)に分類されています。影響を受けるのは 0.38.0 より前の版で、0.38.0 で修正されています。0.38.0 以降へ更新してください。

AI要約

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

diffusers という製品で、CVE-2026-44513 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに trust_remote_code のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
悪用されるとシステム全体を乗っ取られる可能性があります。重要度は CVSS スコア 8.8/10 です。
対策: diffusers を 0.38.0 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「diffusers CVE-2026-44513」を検索してください。

CVE-2026-44513 (diffusers) — CWE-94 / CVSS v3 8.8
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要
脆弱箇所: trust_remote_code / DiffusionPipeline.from_pretrained / custom_pipeline / repoA
修正バージョン: 0.38.0 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

何が問題か

diffusers に 任意コード実行 (CWE-94) があります。攻撃者は trust_remote_code を経由して脆弱な処理に到達し、認証なしで悪用できます。

影響範囲

diffusers の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: trust_remote_code / DiffusionPipeline.from_pretrained / custom_pipeline / repoA。

重要度

重要度: 重要 (CVSS 8.8/10)。悪用されるとシステム全体を乗っ取られる可能性があります。

修正方法

0.38.0 に更新してください。

暫定回避

修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。

検知方法

Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。

対応アクション

SOC/SREチームが順番に実行すべき具体的なステップとコマンド例

  1. 1
    影響範囲の特定identify
    grep -r 'diffusers' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で diffusers を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    パッチ適用patch
    Upgrade diffusers to 0.38.0

    ステージング環境で 0.38.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    事後検証verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

影響パッケージ

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

Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, a trust_remote_code bypass in DiffusionPipeline.from_pretrained allows arbitrary remote code execution despite the user passing trust_remote_code=False (or omitting it, which is the default). The vulnerability has three variants, all sharing the same root cause — the trust_remote_code gate was implemented inside DiffusionPipeline.download() rather than at the actual dynamic-module load site, so any code path that bypassed or short-circuited download() also bypassed the security check. DiffusionPipeline.from_pretrained('repoA', custom_pipeline='attacker/repoB', trust_remote_code=False) — the gate evaluated against repoA's file list rather than repoB's, so repoB's pipeline.py was loaded and executed. DiffusionPipeline.from_pretrained('/local/snapshot', custom_pipeline='attacker/repoB', trust_remote_code=False) — the local-path branch never invoked download(), so the gate was never reached and remote code from repoB executed. DiffusionPipeline.from_pretrained('/local/snapshot', trust_remote_code=False) where the snapshot contains custom component files (e.g. unet/my_unet_model.py) referenced from model_index.json — same root cause; the local path skipped download() and custom component code executed. This vulnerability is fixed in 0.38.0.

出典: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

参照URL

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