[ CVE-2026-63209 · Published 29 Sep 2026 ]
Compress/s2: Integer Overflow or Wraparound and Out-of-bounds Write in compress
CVSS 7.5
EPSS <1%Fix available
[ Description ]Official 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.
[ Fixes ]Fixes and patches
- github.com/klauspost/compress 1.18.7Fixed version · GitHub Advisories · go package github.com/klauspost/compress: upgrade to 1.18.7 or later (affected <= 1.18.6)
[ Packages ]Affected open-source packages
- github.com/klauspost/compress goAffected <= 1.18.6 · fixed in 1.18.7 · GHSA-259r-337f-4rfw