本文へ移動
English version →
高 8.8

Diffusers 悪意あるリポジトリから任意のコードを実行される恐れ

CVE-2026-44827 SecPulse初出

概要

Diffusers の 0.38.0 より前のバージョンでは、Hugging Face Hub から読み込むパイプラインの処理に不具合があり、trust_remote_code=True を指定していなくても任意のコードを実行される恐れがあります。悪意ある None.py を含むリポジトリを from_pretrained で読み込むだけで影響を受けるため、0.38.0 以降へ更新してください。

AI要約

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

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

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

何が問題か

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

影響範囲

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

重要度

重要度: 重要 (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 でアラート再発が無いか継続監視。

影響パッケージ

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

Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, diffusers 0.37.0 allows remote code execution without the trust_remote_code=True safeguard when loading pipelines from Hugging Face Hub repositories. The _resolve_custom_pipeline_and_cls function in pipeline_loading_utils.py performs string interpolation on the custom_pipeline parameter using f"{custom_pipeline}.py". When custom_pipeline is not supplied by the user, it defaults to None, which Python interpolates as the literal string "None.py". If an attacker publishes a Hub repository containing a file named None.py with a class that subclasses DiffusionPipeline, the file is automatically downloaded and executed during a standard DiffusionPipeline.from_pretrained() call with no additional keyword arguments. The trust_remote_code check in DiffusionPipeline.download() is bypassed because it evaluates custom_pipeline is not None as False (since the kwarg was never supplied), while the downstream code path that actually loads the module resolves the None value into a valid filename. An attacker can achieve silent arbitrary code execution by publishing a malicious model repository with a None.py file and a standard-looking model_index.json that references a legitimate pipeline class name, requiring only that a victim calls from_pretrained on the repository. This vulnerability is fixed in 0.38.0.

出典: GitHub Security Advisories (Global) NVD GitHub Advisory

参照URL

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