# CVE-2026-116591: compress zstd: Panic on two-block frames

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-10-26T21:54:33.109Z
- Modified: 2026-11-05T23:25:57.136Z
- Also known as: GHSA-fpmh-frq8-7rj8, GO-2026-6865
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- klauspost compress: < 1.20.2
- github.com/klauspost/compress/zstd (Go): before 1.20.2
- github.com/klauspost/compress (Go): before 1.20.2

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/klauspost/compress/security/advisories/GHSA-fpmh-frq8-7rj8> (advisory, web)
- <https://github.com/klauspost/compress/commit/7f5d8528720c895a6106f201719f87eb030a565d> (fix, web)
- <https://github.com/klauspost/compress/releases/tag/v1.20.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-116591> (advisory)
- <https://github.com/klauspost/compress> (package)

## Sources

- CVE List: [CVE-2026-116591](https://www.cve.org/CVERecord?id=CVE-2026-116591), CVE Terms of Use, modified 2026-10-27
- GitHub Advisory Database: [GHSA-fpmh-frq8-7rj8](https://github.com/advisories/GHSA-fpmh-frq8-7rj8), CC-BY-4.0, modified 2026-11-05
- Go Vulnerability Database: [GO-2026-6865](https://pkg.go.dev/vuln/GO-2026-6865), CC-BY-4.0, modified 2026-11-05
- NVD: [CVE-2026-116591](https://nvd.nist.gov/vuln/detail/CVE-2026-116591), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2026-116591 · Whole record: https://cve.day/CVE-2026-116591.json · Rebuilt by cve.day 2026-11-25T22:59:47.297Z
