GO-2026-5841

Source
https://pkg.go.dev/vuln/GO-2026-5841
Import Source
https://vuln.go.dev/ID/GO-2026-5841.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-5841
Aliases
  • GHSA-259r-337f-4rfw
Downstream
Related
Published
2026-07-27T16:16:22Z
Modified
2026-07-28T08:59:52.775777802Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-5841"
}
References

Affected packages

Go / github.com/klauspost/compress

Package

Name
github.com/klauspost/compress
View open source insights on deps.dev
Purl
pkg:golang/github.com/klauspost/compress

Affected 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"