Go Vulnerability Database
GO-2026-5841
OOB read in github.com/klauspost/compress/s2
Details
Providing a specially crafted dictionary to s2.NewDict and using it to encode data can make the encoder read out of bounds.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/klauspost/compress | From 1.16.0 before 1.18.7 (fixed in 1.18.7) |