Repository navigation
Renovate: Update module github.com/klauspost/compress to v1.18.7 [SECURITY] - #65
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/go-github.com-klauspost-compress-vulnerability
branch
from
October 20, 2026 15:56
b25c1fd to
d6f6531
Compare
renovate
Bot
force-pushed
the
renovate/go-github.com-klauspost-compress-vulnerability
branch
from
October 23, 2026 18:27
d6f6531 to
b6934bb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.18.6→v1.18.7Compress/s2: Integer Overflow or Wraparound and Out-of-bounds Write in compress
CVE-2026-63209 / GHSA-259r-337f-4rfw
More information
Details
Signed Integer Overflow in s2.NewDict
Summary
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 exceedingMaxInt64. WhenDict.Encode()is subsequently called, the overflowed negative repeat value causes an out-of-bounds memory access viaunsafe.Pointerarithmetic, crashing the process with SIGSEGV.Package
github.com/klauspost/compress/s2NewDictfunction)Severity
High (7.5) — CVSS v3.1:
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HVulnerability
Type
Description
The
NewDict()function reads a uvarint from dictionary data and converts it toint:When
rexceedsMaxInt64(9223372036854775807),int(r)overflows to a negative value. Since a negative number is never greater than a positive length, the validation check is bypassed.When
Dict.Encode()is called, the negativerepeatvalue causes an integer overflow inencodeBlockDictGo():load32callsle.Load32which usesunsafe.Pointerarithmetic without bounds checking:This causes a segmentation fault (SIGSEGV) when the negative index is dereferenced.
PoC
Impact
Attack Vector
Any application that:
s2.NewDict()Dict.Encode()on any data ≥32 bytesSuggested Fix
Validate the uvarint value before converting to int:
Or use
uintfor the repeat field and validate againstuint(len(dict)).References
s2/dict.golines 59-61 (vulnerability),s2/encode_all.goline 947 (crash site)Credits
Christopher Linke / https://github.com/celinke97/
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Compress/s2: Integer Overflow or Wraparound and Out-of-bounds Write in compress
CVE-2026-63209 / GHSA-259r-337f-4rfw / GO-2026-5841
More information
Details
Signed Integer Overflow in s2.NewDict
Summary
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 exceedingMaxInt64. WhenDict.Encode()is subsequently called, the overflowed negative repeat value causes an out-of-bounds memory access viaunsafe.Pointerarithmetic, crashing the process with SIGSEGV.Package
github.com/klauspost/compress/s2NewDictfunction)Severity
High (7.5) — CVSS v3.1:
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HVulnerability
Type
Description
The
NewDict()function reads a uvarint from dictionary data and converts it toint:When
rexceedsMaxInt64(9223372036854775807),int(r)overflows to a negative value. Since a negative number is never greater than a positive length, the validation check is bypassed.When
Dict.Encode()is called, the negativerepeatvalue causes an integer overflow inencodeBlockDictGo():load32callsle.Load32which usesunsafe.Pointerarithmetic without bounds checking:This causes a segmentation fault (SIGSEGV) when the negative index is dereferenced.
PoC
Impact
Attack Vector
Any application that:
s2.NewDict()Dict.Encode()on any data ≥32 bytesSuggested Fix
Validate the uvarint value before converting to int:
Or use
uintfor the repeat field and validate againstuint(len(dict)).References
s2/dict.golines 59-61 (vulnerability),s2/encode_all.goline 947 (crash site)Credits
Christopher Linke / https://github.com/celinke97/
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
OOB read in github.com/klauspost/compress/s2
CVE-2026-63209 / GHSA-259r-337f-4rfw / GO-2026-5841
More information
Details
Providing a specially crafted dictionary to s2.NewDict and using it to encode data can make the encoder read out of bounds.
Severity
Unknown
References
This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).
Release Notes
klauspost/compress (github.com/klauspost/compress)
v1.18.7Compare Source
Security release without other changes.
Full Changelog: klauspost/compress@v1.18.6...v1.18.7
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.