# GO-2026-6888: Excessive memory allocation when decompressing crafted streams in github.com/andybalholm/brotli

- Database: Go
- Also known as: BIT-BROTLI-2026-111497, BIT-DOTNET-2026-111497, BIT-DOTNET-SDK-2026-111497, BIT-NODE-2026-111497, BIT-NODE-MIN-2026-111497, BIT-POWERSHELL-2026-111497
- Published: 2026-11-05
- Modified: 2026-11-05

## Tracked as

- [CVE-2026-111497](https://cve.now/CVE-2026-111497.md): Google out-of-bounds write in decompression decoder

## Also published as

- [GHSA-9V8H-QQGM-4M35](https://cve.now/GHSA-9V8H-QQGM-4M35.md) (GitHub)
- [PYSEC-2026-4322](https://cve.now/PYSEC-2026-4322.md) (PyPA)
- [PYSEC-2026-4323](https://cve.now/PYSEC-2026-4323.md) (PyPA)

## Affected versions

- github.com/andybalholm/brotli (Go): fixed in 1.2.7

## 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.

## References

- https://github.com/andybalholm/brotli/security/advisories/GHSA-c9gr-gmg4-2vqv
- https://github.com/andybalholm/brotli/commit/33c2a9884269798192b5ecf171288f98939dbe42
- https://github.com/andybalholm/brotli/releases/tag/v1.2.7
- https://github.com/google/brotli/commit/0ed4268a4401abcb4472096340477cf4af7d1a2b

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