{"id":"GO-2026-5841","summary":"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.","aliases":["GHSA-259r-337f-4rfw"],"modified":"2026-07-28T08:59:52.775777802Z","published":"2026-07-27T16:16:22Z","related":["CGA-6h67-2j3q-q9qr"],"database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2026-5841"},"references":[{"type":"ADVISORY","url":"https://github.com/klauspost/compress/security/advisories/GHSA-259r-337f-4rfw"},{"type":"FIX","url":"https://github.com/klauspost/compress/commit/8668e357e776d5152ed62f33c17f21b8690664fa"}],"affected":[{"package":{"name":"github.com/klauspost/compress","ecosystem":"Go","purl":"pkg:golang/github.com/klauspost/compress"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.16.0"},{"fixed":"1.18.7"}]}],"ecosystem_specific":{"imports":[{"path":"github.com/klauspost/compress/s2","symbols":["NewDict"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2026-5841.json"}}],"schema_version":"1.7.5"}