CVE-2026-116591

compress zstd: Panic on two-block frames

Published Oct 26, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises when the zstd decoder in the compress library processes a specially crafted two‑block frame. A frame containing an FSE normalized count of 32768 is stored as a signed int16, yielding –32768. This negative value is then used later to build a stale decode‑table, allowing the decoder to index beyond the bounds of its table and trigger a panic. The panic results in a crash of any application that uses the decoder, giving an attacker the ability to destabilize the target system or application with untrusted zstd input.

Affected Systems

Vendor klauspost:compress. Versions prior to 1.20.2 are affected. The issue was addressed in release v1.20.2 and later versions. Applications that depend on this library or process zstd data from external sources are potentially impacted.

Risk and Exploitability

The CVSS score of 8.7 indicates a high impact vulnerability. EPSS score is noted as < 1%, indicating a very low but nonzero exploitation probability, while the lack of a KEV listing suggests this vulnerability has not yet been observed in the wild. The attack vector is likely Remote Delivery via an injected or user‑supplied zstd stream that contains the malicious frame structure. By causing an unhandled panic, an attacker can bring the host application or service down, leading to denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade klauspost:compress to version 1.20.2 or later so that the decoder no longer processes the vulnerable two‑block frame.
  • Validate incoming zstd streams to reject frames with anomalous FSE counts or length before passing to the decoder, thereby limiting potential panic conditions.
  • If upgrading immediately is not possible, isolate the zstd decoding path in a separate sandboxed process or crash‑capping container to contain any panic and prevent application‑wide downtime.

Generated by OpenCVE AI on October 29, 2026 at 14:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-fpmh-frq8-7rj8 compress zstd: Panic on two-block frames
History
Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Klauspost
Klauspost compress
Vendors & Products Klauspost
Klauspost compress
Type Values Removed Values Added
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.
Title compress zstd: Panic on two-block frames
Weaknesses CWE-190
References
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 27, 2026, 2:16 PM
Reserved
Oct 26, 2026, 3:03 PM
Status
Awaiting Analysis
Published
Oct 26, 2026, 10:16 PM
Modified
Oct 27, 2026, 4:03 PM
Severity
Important
Public date
Oct 26, 2026, 9:54 PM