# GO-2026-5841: OOB read in github.com/klauspost/compress/s2

- Database: Go
- Published: 2026-07-27
- Modified: 2026-09-30

## Tracked as

- [CVE-2026-63209](https://cve.now/CVE-2026-63209.md): Integer Overflow or Wraparound and Out-of-bounds Write in compress

## Also published as

- [GHSA-259R-337F-4RFW](https://cve.now/GHSA-259R-337F-4RFW.md) (GitHub)

## Affected versions

- github.com/klauspost/compress (Go): from 1.16.0, fixed in 1.18.7

## Description

Providing a specially crafted dictionary to s2.NewDict and using it to encode data can make the encoder read out of bounds.

## References

- https://github.com/klauspost/compress/security/advisories/GHSA-259r-337f-4rfw
- https://github.com/klauspost/compress/commit/8668e357e776d5152ed62f33c17f21b8690664fa

Page: https://cve.now/GO-2026-5841

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
