compressの脆弱性で細工されたzstdデータによりアプリケーションが異常終了するおそれ
概要
Go言語向け圧縮ライブラリのcompressに、zstd形式のデータ展開処理で異常終了(パニック)を起こす脆弱性が見つかりました。細工された2ブロックのフレームを読み込ませると、外部から送られたzstdデータでアプリケーションが停止するおそれがあります。影響を受けるのは1.20.2より前のバージョンで、1.20.2で修正されています。該当するバージョンを使っている場合は、1.20.2以降へ更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Go言語向け圧縮ライブラリのcompressに、zstd形式のデータ展開処理で異常終了(パニック)を起こす脆弱性が見つかりました。細工された2ブロックのフレームを読み込ませると、外部から送られたzstdデータでアプリケーションが停止するおそれがあります。影響を受けるのは1.20.2より前のバージョンで、1.20.2で修正されています。該当するバージョンを使っている場合は、1.20.2以降へ更新してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| klauspostcompress | — | 記載なし |
| gogithub.com/klauspost/compress/zstd |
1.20.2 未満→ 1.20.2 |
1.20.2 |
| Gogithub.com/klauspost/compress |
1.20.2 未満→ 1.20.2 |
1.20.2 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- Alpine Linux ALPINE-CVE-2026-116591 docker 修正版あり
- BellSoft Alpaquita BELL-CVE-2026-116591 docker 修正版あり
- Debian DEBIAN-CVE-2026-116591 golang-github-klauspost-compress 修正版あり
- Ubuntu UBUNTU-CVE-2026-116591 golang-github-klauspost-compress この記録に修正版の記載なし
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
compress provides various compression algorithms. Prior to 1.20.2, the zstd DecodeAll and streaming decoder paths can panic when a crafted two-block frame reaches huff0.ReadTable with an FSE normalized count of 32768 that readNCount stores in int16 as -32768. The wrapped count allows buildDtable to retain stale fse.Scratch decode-table state from the prior block, and nextFast then derives an out-of-range state and indexes beyond the table instead of returning a decode error. Both blocks are required to preserve and then reuse the stale state, allowing untrusted zstd input to crash an application. This issue is fixed in version 1.20.2.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com