mirage-crypto package の脆弱性
概要
mirage-crypto package に 脆弱性 (CVE-2026-87732) が存在。データの不正な改ざんを許す可能性があります。
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
mirage-crypto package という製品で、CVE-2026-87732 という番号がついた弱点 (脆弱性) が見つかりました。
データの不正な改ざんを許す可能性があります。重要度は CVSS スコア 6.2/10 です。
対策: ベンダー公式の修正版に更新してください。
心配なら、システム担当者や製品の公式サイトで「mirage-crypto package CVE-2026-87732」を検索してください。
CVE-2026-87732 (mirage-crypto package) — CWE-347 / CVSS v3 6.2
攻撃ベクター: ローカル / 認証不要 / 被害者操作不要
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
mirage-crypto package に 脆弱性 (CWE-347) があります。
mirage-crypto package の影響バージョンはベンダーのアドバイザリで確認してください。
重要度: 中 (CVSS 6.2/10)。データの不正な改ざんを許す可能性があります。
ベンダー公式アドバイザリの修正版に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで mirage-crypto package を使っているサービスとバージョンを洗い出す。
-
2
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| opammirage-crypto |
2.2.0 未満→ 2.2.0 |
2.2.0 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- Debian DEBIAN-CVE-2026-87732 ocaml-mirage-crypto 修正版あり
- Ubuntu UBUNTU-CVE-2026-87732 ocaml-mirage-crypto この記録に修正版の記載なし
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
On the generic GCM path, AES.GCM.authenticate_decrypt_into (as well as Chacha20.authenticate_decrypt_into and AES.CCM16.authenticate_decrypt_into) writes the decrypted plaintext into the caller's destination buffer and only then compares the tag. On a forged tag the function returns false, but the destination buffer already holds the full plaintext. AEAD decryption is meant to be all-or-nothing: no plaintext should be released until the tag verifies. This is a release of unverified plaintext, and a caller that reads the buffer without first checking the return value sees forged-but-decrypted data. RustCrypto's aes-gcm fixed the same defect in CVE-2023-42811 (rated medium) by re-encrypting the buffer on tag failure.
Solution
The tag is validated first, and only if the tag is valid, the decryption into the provided buffer is done. In the CCM code, the tag is computed over the plaintext - if the tag validation fails, the provided buffer is zeroed.
Reproduction
module GCM = Mirage_crypto.AES.GCM
let () =
let key = GCM.of_secret (String.make 32 '\x00') in
let nonce = String.make 12 '\x00' in
let secret = "let password = 42" in
let len = String.length secret in
let blob = GCM.authenticate_encrypt ~key ~nonce secret in
(* flip one bit of the 16-byte tag (at offset len); the ciphertext is untouched *)
let forged = Bytes.of_string blob in
Bytes.set forged len (Char.chr (Char.code (Bytes.get forged len) lxor 1));
let forged = Bytes.unsafe_to_…
出典: NIST National Vulnerability Database NVD GitHub Advisory
参照URL
- web osv.dev
- web nvd.nist.gov
- web github.com