Skip to main content
Menu
Advisories

Excessive memory allocation when decompressing crafted streams in github.com/andybalholm/brotli

GO-2026-6888BIT-BROTLI-2026-111497BIT-DOTNET-2026-111497BIT-DOTNET-SDK-2026-111497BIT-NODE-2026-111497BIT-NODE-MIN-2026-111497BIT-POWERSHELL-2026-111497Published Updated Go

Description

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.

Affected versions

References

GitHub · andybalholm/brotli

GitHub · google/brotli