msgpack に 解放後使用 (Use-After-Free) (CVE-2026-54522)
概要
msgpack に 脆弱性 (CVE-2026-54522) が存在。不正な操作・情報露出のリスクがあります。rmem_last 経由で攻撃可能。対策: 1.8.2 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
MessagePack::Buffer#clear shifts out every chunk and returns its 4 KiB rmem page to the shared pool, but does not reset the buffer's rmem cursor (rmem_last, rmem_end, rmem_owner). The next write sees "unused rmem space" left over from the freed page and hands back a slice of memory that has already been returned to the pool. A second MessagePack::Buffer then re-acquires that same page, so reading the cleared-and-rewritten buffer discloses the second buffer's bytes — a same-process use-after-free with cross-buffer information disclosure (and the symmetric write-corruption).
Details
msgpack_buffer_clear()→_msgpack_buffer_shift_chunk()(ext/msgpack/buffer.c:151,:128) destroys chunks (_msgpack_buffer_chunk_destroy,:58, returns the page viamsgpack_rmem_free) but resets onlytail_buffer_end/read_buffer, leavingrmem_last/rmem_end/rmem_ownerpointing into the freed page.- Next
Buffer#write→_msgpack_buffer_chunk_malloc()reuse branch (:363) returnsb->rmem_last, a pointer into the already-freed page. - A second buffer's first write calls
msgpack_rmem_alloc()and gets the same physical page back from the pool → the two buffers alias the same memory. - Sanitizer note: rmem (
ext/msgpack/rmem.h) recycles pages with a slab bitmask, notfree(), so a stock ASAN build does not abort; the cross-buffer disclosure below is the proof.
PoC
Single self-contained script (builds msgpack from rubygems with AddressSanitize…
出典: GitHub Security Advisories (Global) NVD GitHub Advisory
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
msgpack という製品で、CVE-2026-54522 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに rmem_last のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。重要度は CVSS スコア 5.4/10 です。
対策: msgpack を 1.8.2 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「msgpack CVE-2026-54522」を検索してください。
CVE-2026-54522 (msgpack) — CWE-416 / CVSS v3 5.4
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
脆弱箇所: rmem_last / rmem_end / rmem_owner / _msgpack_buffer_chunk_destroy
修正バージョン: 1.8.2 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
msgpack に 解放後使用 (use-after-free) (CWE-416) があります。攻撃者は rmem_last を経由して脆弱な処理に到達できます。
msgpack の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: rmem_last / rmem_end / rmem_owner / _msgpack_buffer_chunk_destroy。
重要度: 中 (CVSS 5.4/10)。不正な操作・情報露出のリスクがあります。
1.8.2 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'msgpack' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
msgpackを grep し、稼働しているサービス・バージョンを把握する。 -
2パッチ適用 patch
Upgrade msgpack to 1.8.2ステージング環境で 1.8.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の修正パッケージ
- Ubuntu UBUNTU-CVE-2026-54522 ruby-msgpack
参照URL
- exploit github.com
- patch security-advisories@github.com
- web github.com
- web cve.org
- web github.com