Repository navigation
chore(deps): update module github.com/klauspost/compress to v1.18.7 [security] - #1500
Open
renovate-bot wants to merge 1 commit into
Conversation
ℹ️ Artifact update noticeFile name: golang/go-guestbook/src/backend/go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
Collaborator
|
/gcbrun |
JakubRN
reviewed
Oct 20, 2026
| @@ -6,6 +6,8 @@ github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= | |||
| github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | |||
| github.com/klauspost/compress v1.13.6 h1:P76CopJELS0TiO2mebmnzgWaajssP/EszplttgQxcgc= | |||
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.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
v1.13.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).
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
v1.18.6Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.18.5...v1.18.6
v1.18.5Compare Source
What's Changed
Full Changelog: klauspost/compress@v1.18.4...v1.18.5
v1.18.4Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.18.2...v1.18.4
v1.18.3Compare Source
Downstream CVE-2025-61728
See golang/go#77102
Full Changelog: klauspost/compress@v1.18.2...v1.18.3
v1.18.2Compare Source
What's Changed
v1.18.1is marked "retracted" due to invalid flate/zip/gzip encoding.New Contributors
Full Changelog: klauspost/compress@v1.18.1...v1.18.2
v1.18.1Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.18.0...v1.18.1
v1.18.0Compare Source
What's Changed
r.err != nilbut return a nil value errorerrby @alingse in #1028minfunction by @Juneezee in #1038slices.Maxfor max value in slice by @Juneezee in #1041New Contributors
Full Changelog: klauspost/compress@v1.17.11...v1.18.0
v1.17.11Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.17.10...v1.17.11
v1.17.10Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.17.9...v1.17.10
v1.17.9Compare Source
What's Changed
Full Changelog: klauspost/compress@v1.17.8...v1.17.9
v1.17.8Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.17.7...v1.17.8
v1.17.7Compare Source
What's Changed
Full Changelog: klauspost/compress@v1.17.6...v1.17.7
v1.17.6Compare Source
What's Changed
Full Changelog: klauspost/compress@v1.17.5...v1.17.6
v1.17.5Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.17.4...v1.17.5
v1.17.4Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.17.3...v1.17.4
v1.17.3Compare Source
What's Changed
Full Changelog: klauspost/compress@v1.17.2...v1.17.3
v1.17.2Compare Source
What's Changed
Full Changelog: klauspost/compress@v1.17.1...v1.17.2
v1.17.1Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.17.0...v1.17.1
v1.17.0Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.16.7...v1.17.0
v1.16.7Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.16.6...v1.16.7
v1.16.6Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.16.5...v1.16.6
v1.16.5Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.16.4...v1.16.5
v1.16.4Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.16.3...v1.16.4
v1.16.3Compare Source
Full Changelog: klauspost/compress@v1.16.2...v1.16.3
v1.16.2Compare Source
What's Changed
Full Changelog: klauspost/compress@v1.16.1...v1.16.2
v1.16.1Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.16.0...v1.16.1
v1.16.0Compare Source
What's Changed
Full Changelog: klauspost/compress@v1.15.15...v1.16.0
v1.15.15Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.15.14...v1.15.15
v1.15.14Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.15.13...v1.15.14
v1.15.13Compare Source
What's Changed
Full Changelog: klauspost/compress@v1.15.12...v1.15.13
v1.15.12Compare Source
What's Changed
HeaderNoCompressionby @klauspost in #683Full Changelog: klauspost/compress@v1.15.11...v1.15.12
v1.15.11Compare Source
What's Changed
New Contributors
Full Changelog: klauspost/compress@v1.15.10...v1.15.11
v1.15.10Compare Source
What's Changed
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.