GO-2026-6888

Source
https://pkg.go.dev/vuln/GO-2026-6888
Import Source
https://vuln.go.dev/ID/GO-2026-6888.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-6888
Aliases
Published
2026-11-05T22:55:15Z
Modified
2026-11-05T23:25:49Z
Summary
Excessive memory allocation when decompressing crafted streams in github.com/andybalholm/brotli
Details

In github.com/andybalholm/brotli before v1.2.7, the decompressor allocates memory for Huffman tables and block-type trees on every meta-block header without bounding the cumulative allocations relative to the input size. A small crafted brotli stream containing many empty meta-blocks with new Huffman trees can trigger hundreds of megabytes of allocations per kilobyte of input, leading to denial of service.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-6888"
}
References
Credits
    • Philippe Antoine (Catena cyber)

Affected packages

Go / github.com/andybalholm/brotli

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.2.7

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/andybalholm/brotli",
            "symbols": [
                "Reader.Read",
                "decodeBlockTypeAndLength",
                "decodeCommandBlockSwitch",
                "decodeCommandBlockSwitchInternal",
                "decodeDistanceBlockSwitch",
                "decodeDistanceBlockSwitchInternal",
                "decodeError.Error",
                "decodeLiteralBlockSwitch",
                "decodeLiteralBlockSwitchInternal",
                "decoderErrorString",
                "processCommandsInternal",
                "safeDecodeCommandBlockSwitch",
                "safeDecodeDistanceBlockSwitch",
                "safeDecodeLiteralBlockSwitch"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-6888.json"