Description
compress provides various compression algorithms. Prior to version 1.18.7, a signed integer overflow vulnerability in s2.NewDict() allows an attacker to bypass repeat index validation by supplying a dictionary with a uvarint-encoded repeat value exceeding MaxInt64. When Dict.Encode() is subsequently called, the overflowed negative repeat value causes an out-of-bounds memory access via unsafe.Pointer arithmetic, crashing the process with SIGSEGV. This issue has been patched in version 1.18.7.
Published: 2026-09-29
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service due to an integer overflow that causes an out-of-bounds memory access and a SIGSEGV crash
Action: Patch Now
AI Analysis

Impact

A signed integer overflow in s2.NewDict() allows an attacker to provide a dictionary containing a uvarint-encoded repeat value larger than the maximum 64‑bit signed integer. The overflow turns the repeat value into a negative number, which is then used in unsafe.Pointer arithmetic during Dict.Encode(). This results in an out-of-bounds write that typically terminates the process with a segmentation fault. The impact is a denial of service and potential instability in any application using compress.

Affected Systems

The vulnerability affects the klauspost/compress library across all releases before version 1.18.7. The issue was resolved in v1.18.7, which should be deployed to stop the overflow and subsequent crash.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity. The exploit requires the ability to supply a crafted dictionary to the application’s compression code, making it an in‑process vulnerability rather than a remote network attack vector. The EPSS score is < 1%, indicating a low probability of exploitation, but the lack of listing in the CISA KEV catalog suggests no confirmed widespread exploitation to date. Nonetheless, the severe consequence of a SIGSEGV and the high CVSS recommend immediate mitigation.

Generated by OpenCVE AI on October 2, 2026 at 01:54 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the compress library to version 1.18.7 or later, which contains the overflow fix.
  • If an upgrade cannot be performed immediately, restrict or validate all dictionary inputs before calling s2.NewDict(), ensuring that repeat values do not exceed MaxInt64 and are not negative after decoding.
  • Apply additional safeguards such as runtime boundary checks or replace the vulnerable library with a safe alternative, and monitor application logs for segmentation faults to detect potential exploitation attempts.

Generated by OpenCVE AI on October 2, 2026 at 01:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-259r-337f-4rfw Compress/s2: Integer Overflow or Wraparound and Out-of-bounds Write in compress
History

Fri, 02 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-823
References
Metrics threat_severity

None

threat_severity

Important


Wed, 30 Sep 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Klauspost
Klauspost compress
Vendors & Products Klauspost
Klauspost compress

Tue, 29 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 29 Sep 2026 15:15:00 +0000

Type Values Removed Values Added
Description compress provides various compression algorithms. Prior to version 1.18.7, a signed integer overflow vulnerability in s2.NewDict() allows an attacker to bypass repeat index validation by supplying a dictionary with a uvarint-encoded repeat value exceeding MaxInt64. When Dict.Encode() is subsequently called, the overflowed negative repeat value causes an out-of-bounds memory access via unsafe.Pointer arithmetic, crashing the process with SIGSEGV. This issue has been patched in version 1.18.7.
Title Integer Overflow or Wraparound and Out-of-bounds Write in compress
Weaknesses CWE-190
CWE-787
References
Metrics 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'}


Subscriptions

Klauspost Compress
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-29T16:32:32.677Z

Reserved: 2026-07-15T22:19:06.906Z

Link: CVE-2026-63209

cve-icon Vulnrichment

Updated: 2026-09-29T16:31:49.434Z

cve-icon NVD

Status : Deferred

Published: 2026-09-29T15:17:27.130

Modified: 2026-09-30T19:57:08.043

Link: CVE-2026-63209

cve-icon Redhat

Severity : Important

Publid Date: 2026-09-29T14:58:53Z

Links: CVE-2026-63209 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-02T02:00:14Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-787

    Out-of-bounds Write

  • CWE-823

    Use of Out-of-range Pointer Offset