CVE-2026-27571: Unbounded Decompression Read

Reading an uncontrolled decompressed stream without limiting the output size can lead to excessive memory consumption and Out-Of-Memory (OOM) crashes, also known as a compression bomb or zip bomb. Wrap the decompressor with `io.LimitReader` or `io.LimitedReader` before reading into memory.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-27571-unbounded-decompression-read --engine opengrep

Description

Reading an uncontrolled decompressed stream without limiting the output size can lead to excessive memory consumption and Out-Of-Memory (OOM) crashes, also known as a compression bomb or zip bomb. Wrap the decompressor with `io.LimitReader` or `io.LimitedReader` before reading into memory.