CVE-2026-116591

GHSA-fpmh-frq8-7rj8 · GO-2026-6865 · published 26 Oct 2026 · updated 5 Nov 2026

compress zstd: Panic on two-block frames

8.7HighCVSS 8.7EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in github.com/klauspost/compress 1.20.2 and github.com/klauspost/compress/zstd 1.20.2.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
klauspost<1.20.2
go: github.com/klauspost/compress<1.20.21.20.2
go: github.com/klauspost/compress/zstd<1.20.21.20.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-116591 severity on Zeptric[![CVE-2026-116591](https://zeptric.io/badge/cve/CVE-2026-116591.svg)](https://zeptric.io/cve/CVE-2026-116591)