本文へ移動
English version →
高 7.8

Buildahにキャッシュマウントの検証不備の脆弱性、任意のホストディレクトリを読み書きされるおそれ

CVE-2024-9675 SecPulse初出

概要

Buildahには、キャッシュマウントで指定されたパスがキャッシュディレクトリ内にあるかを検証しない脆弱性(CVE-2024-9675)があります。Containerfileの RUN 命令により、Buildahを実行するユーザーがアクセスできるホスト上の任意のディレクトリを、コンテナに読み書きできる形でマウントされるおそれがあります。影響を受けるのは1.38.0より前のバージョンで、修正版は1.38.0です。修正版への更新を優先して検討してください。

AI要約

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

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

CVE-2024-9675 (github.com/containers/buildah) — CWE-22 / CVSS v3 7.8
攻撃ベクター: ローカル / 被害者操作不要
脆弱箇所: RUN
修正バージョン: 1.38.0 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

何が問題か

github.com/containers/buildah に パストラバーサル (CWE-22) があります。攻撃者は RUN を経由して脆弱な処理に到達できます。

影響範囲

github.com/containers/buildah の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: RUN。

重要度

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

修正方法

1.38.0 に更新してください。

暫定回避

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

検知方法

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

対応アクション

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

  1. 1
    影響範囲の特定identify
    grep -r 'github.com/containers/buildah' . | grep -v node_modules

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

  2. 2
    パッチ適用patch
    Upgrade github.com/containers/buildah to 1.38.0

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

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

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

影響パッケージ

パッケージ影響を受ける版 → 修正版
gogithub.com/containers/buildah
1.38.0 未満→ 1.38.0
GitHubbuildah
1.38.0 未満→ 1.38.0
Red HatRed Hat Enterprise Linux 8 —
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support —
Red HatRed Hat Enterprise Linux 8.6 Telecommunications Update Service —
Red HatRed Hat Enterprise Linux 8.6 Update Services for SAP Solutions —
Red HatRed Hat Enterprise Linux 8.8 Extended Update Support —
Red HatRed Hat Enterprise Linux 9 —
Red HatRed Hat Enterprise Linux 9.0 Extended Update Support —
Red HatRed Hat Enterprise Linux 9.2 Extended Update Support —
Red HatRed Hat OpenShift Container Platform 4.12 —
Red HatRed Hat OpenShift Container Platform 4.13 —
Red HatRed Hat OpenShift Container Platform 4.14 —
Red HatRed Hat OpenShift Container Platform 4.15 —
Red HatRed Hat OpenShift Container Platform 4.16 —
Red HatRed Hat OpenShift Container Platform 4.17 —
Red HatRed Hat OpenShift Container Platform 4.18 —

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

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

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

A vulnerability was found in Buildah. Cache mounts do not properly validate that user-specified paths for the cache are within our cache directory, allowing a RUN instruction in a Container file to mount an arbitrary directory from the host (read/write) into the container as long as those files can be accessed by the user running Buildah.

出典: NIST National Vulnerability Database NVD GitHub Advisory

参照URL

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