English version →
カテゴリ
CVE-2023-41880

wasmtime の脆弱性 (CVE-2023-41880)

概要

wasmtime に 脆弱性 (CVE-2023-41880) が存在。不正な操作・情報露出のリスクがあります。i64x2.shr_s 経由で攻撃可能。対策: 12.0.2 以上に更新。

原文の説明

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

Impact

Wasmtime versions from 10.0.0 to 12.0.1 contain a miscompilation of the WebAssembly i64x2.shr_s instruction on x86_64 platforms when the shift amount is a constant value that is larger than 32. Only x86_64 is affected so all other targets are not affected by this. The miscompilation results in the instruction producing an incorrect result, namely the low 32-bits of the second lane of the vector are derived from the low 32-bits of the second lane of the input vector instead of the high 32-bits. The primary impact of this issue is that any WebAssembly program using the i64x2.shr_s with a constant shift amount larger than 32 may produce an incorrect result.

This issue is not an escape from the WebAssembly sandbox. Execution of WebAssembly guest programs will still behave correctly with respect to memory sandboxing and isolation from the host. Wasmtime considers non-spec-compliant behavior as a security issue nonetheless.

This issue was discovered through fuzzing of Wasmtime's code generator Cranelift.

Patches

Wasmtime versions 10.0.2, 11.0.2, and 12.0.2 are all patched to no longer have this miscompilation.

Workarounds

This issue only affects x86_64 hosts and the only workaround is to either scan for this pattern in wasm modules which is nontrivial or to disable the SIMD proposal for WebAssembly. Users prior to 10.0.0 are unaffected by this vulnerability.

References…

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

自動生成の要約

取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。

wasmtime という製品で、CVE-2023-41880 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに i64x2.shr_s のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。
対策: wasmtime を 12.0.2 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「wasmtime CVE-2023-41880」を検索してください。

CVE-2023-41880 (wasmtime) — CWE-193
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
脆弱箇所: i64x2.shr_s
修正バージョン: 12.0.2 (即時適用推奨)
暫定回避: This issue only affects x86_64 hosts and the only workaround is to either scan for this pattern in wasm modules which is nontrivial or to [disable the SIMD proposal for WebAssembly](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.w
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

❓ 何が問題か

wasmtime に 脆弱性 (CWE-193) があります。攻撃者は i64x2.shr_s を経由して脆弱な処理に到達できます。

📍 影響範囲

wasmtime の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: i64x2.shr_s。

🔥 重要度

重要度: ?。不正な操作・情報露出のリスクがあります。

🔧 修正方法

12.0.2 に更新してください。

🛡️ 暫定回避

暫定回避: This issue only affects x86_64 hosts and the only workaround is to either scan for this pattern in wasm modules which is nontrivial or to [disable the SIMD proposal for WebAssembly](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.w

🔍 検知方法

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

対応アクション

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

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

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

  2. 2
    暫定回避策の適用 mitigate
    This issue only affects x86_64 hosts and the only workaround is to either scan for this pattern in wasm modules which is nontrivial or to [disable the SIMD proposal for WebAssembly](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.w

    パッチが適用されるまでの応急処置として、This issue only affects x86_64 hosts and the only workaround is to either scan for this pattern in wasm modules which is nontrivial or to [disable the SIMD proposal for WebAssembly](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.w を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    パッチ適用 patch
    Upgrade wasmtime to 12.0.2

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

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

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

影響パッケージ

crates.io wasmtime
[{"type":"SEMVER","events":[{"introduced":"12.0.0"},{"fixed":"12.0.2"}]}]

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

各ディストリビューションが公開している、この CVE の修正パッケージ

参照URL

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