Buildahにキャッシュマウントの検証不備の脆弱性、任意のホストディレクトリを読み書きされるおそれ
概要
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
影響範囲の特定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
パッチ適用patch
Upgrade github.com/containers/buildah to 1.38.0ステージング環境で 1.38.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| gogithub.com/containers/buildah |
1.38.0 未満→ 1.38.0 |
1.38.0 |
| GitHubbuildah |
1.38.0 未満→ 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 の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- Alpine Linux ALPINE-CVE-2024-9675 podman, buildah 修正版あり
- Debian DEBIAN-CVE-2024-9675 golang-github-containers-buildah 修正版あり
- Ubuntu UBUNTU-CVE-2024-9675 golang-github-containers-buildah この記録に修正版の記載なし
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
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
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory nvd.nist.gov
- advisory access.redhat.com
- advisory github.com
- advisory access.redhat.com
- package github.com
- report bugzilla.redhat.com
- web github.com
- web pkg.go.dev
- web github.com
- web access.redhat.com
- web catalog.redhat.com