Skip to content
Heist/ feed
Back to feed
High

compress zstd: Panic on two-block frames

Type: advisorySources: Official CVE List

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.

Products
compress
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-116591
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:58 UTC · Revision 1

Source evidence

compress zstd: Panic on two-block frames

core-cve · Original source

Published 26 Oct 2026, 21:54 UTC

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.

cve:CVE-2026-116591

compress

Fixed versions: Not specified

Complete source record
{
  "id": "54f2fe83964b9762670e0d4942a061d06785c2cac1013f4aa9a790420cb7a46d",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-116591",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "compress zstd: Panic on two-block frames",
    "summary": "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.",
    "evidence": "cve:CVE-2026-116591",
    "products": [
      {
        "name": {
          "value": "compress",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-116591",
      "aliases": [
        "CVE-2026-116591"
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "version": "4.0",
            "baseScore": 8.7,
            "attackVector": "NETWORK",
            "baseSeverity": "HIGH",
            "vectorString": "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",
            "userInteraction": "NONE",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "privilegesRequired": "NONE",
            "subIntegrityImpact": "NONE",
            "vulnIntegrityImpact": "NONE",
            "subAvailabilityImpact": "NONE",
            "vulnAvailabilityImpact": "HIGH",
            "subConfidentialityImpact": "NONE",
            "vulnConfidentialityImpact": "NONE"
          }
        }
      ],
      "affected": [
        {
          "vendor": "klauspost",
          "product": "compress",
          "versions": [
            {
              "status": "affected",
              "version": "< 1.20.2"
            }
          ]
        }
      ],
      "modified": "2026-10-27T14:16:30.395Z",
      "provider": "cve",
      "references": [
        "https://github.com/klauspost/compress/security/advisories/GHSA-fpmh-frq8-7rj8",
        "https://github.com/klauspost/compress/commit/7f5d8528720c895a6106f201719f87eb030a565d",
        "https://github.com/klauspost/compress/releases/tag/v1.20.2"
      ],
      "provider_metadata": {
        "adp": [
          {
            "title": "CISA ADP Vulnrichment",
            "metrics": [
              {
                "other": {
                  "type": "ssvc",
                  "content": {
                    "id": "CVE-2026-116591",
                    "role": "CISA Coordinator",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "version": "2.0.3",
                    "timestamp": "2026-10-27T13:46:04.382421Z"
                  }
                }
              }
            ],
            "providerMetadata": {
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP",
              "dateUpdated": "2026-10-27T14:16:30.395Z"
            }
          }
        ],
        "cna": {
          "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
          "shortName": "GitHub_M",
          "dateUpdated": "2026-10-26T21:55:20.476Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-116591",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 392647,
  "published_at": "2026-10-26T21:54:33.109+00:00"
}