CVE-2026-116591
HIGH 8.7CVSS 4.0compress zstd: Panic on two-block frames
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.
- Published
- 26 Oct 2026
- Last modified
- 5 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-190
- Also known as
- GHSA-fpmh-frq8-7rj8GO-2026-6865
- Sources
- NVDJSONOSV GHSA-fpmh-frq8-7rj8JSONOSV GO-2026-6865JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/klauspost/compress/zstd | < 1.20.2 | 1.20.2 |
| OSV | Go | github.com/klauspost/compress | < 1.20.2 | 1.20.2 |
References
- https://github.com/klauspost/compress/commit/7f5d8528720c895a6106f201719f87eb030a565d · WEB, FIX
- https://github.com/klauspost/compress/releases/tag/v1.20.2 · WEB
- https://github.com/klauspost/compress/security/advisories/GHSA-fpmh-frq8-7rj8 · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-116591 · ADVISORY
- https://github.com/klauspost/compress · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 26 Oct 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Nov 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 27 Oct 2026)