compressの脆弱性で細工されたzstdデータによりアプリケーションが異常終了するおそれ
Summary
Go言語向け圧縮ライブラリのcompressに、zstd形式のデータ展開処理で異常終了(パニック)を起こす脆弱性が見つかりました。細工された2ブロックのフレームを読み込ませると、外部から送られたzstdデータでアプリケーションが停止するおそれがあります。影響を受けるのは1.20.2より前のバージョンで、1.20.2で修正されています。該当するバージョンを使っている場合は、1.20.2以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Go言語向け圧縮ライブラリのcompressに、zstd形式のデータ展開処理で異常終了(パニック)を起こす脆弱性が見つかりました。細工された2ブロックのフレームを読み込ませると、外部から送られたzstdデータでアプリケーションが停止するおそれがあります。影響を受けるのは1.20.2より前のバージョンで、1.20.2で修正されています。該当するバージョンを使っている場合は、1.20.2以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| klauspostcompress | — | Not listed |
| 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 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2026-116591 docker Fix available
- BellSoft Alpaquita BELL-CVE-2026-116591 docker Fix available
- Debian DEBIAN-CVE-2026-116591 golang-github-klauspost-compress Fix available
- Ubuntu UBUNTU-CVE-2026-116591 golang-github-klauspost-compress No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- 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