Netty HttpContentDecompressor and DelegatingDecompressorFrameListener Unbounded Memory Allocation Vulnerability via Brotli, Zstd, or Snappy Encoding

Vulnerability

A denial-of-service vulnerability has been identified in Netty's HttpContentDecompressor and DelegatingDecompressorFrameListener components, prior to versions 4.2.13.Final and 4.1.133.Final. These components, responsible for decompressing HTTP content, accept a maxAllocation parameter to limit buffer sizes and prevent decompression bomb attacks. While this limit is enforced for gzip and deflate encodings, it is ignored for Brotli, zstd, and snappy. As a result, an attacker can bypass the decompression limit by using Brotli encoding, leading to unbounded memory allocation and out-of-memory conditions on the server.

Impact

Exploitation of this vulnerability causes out-of-memory conditions, leading to denial-of-service on the affected server. Additionally, it creates a false sense of security, as developers may believe they are protected against decompression bombs when using Brotli, zstd, or snappy encodings.

Reproduction

To reproduce this vulnerability, configure a Netty HTTP server with decompression bomb protection by setting a maxAllocation limit. Then, send a Brotli-compressed payload that exceeds the allocated memory limit. The server will experience an out-of-memory condition as the decompressed data is streamed into memory without any constraints.

Remediation

Users can upgrade to Netty versions 4.2.13.Final or 4.1.133.Final, where this vulnerability has been fixed.

Added: May 13, 2026, 7:23 PM
Updated: May 13, 2026, 7:23 PM

Vulnerability Rating

Custom Algorithm
spread
8.6
impact
2.5
exploitability
9.5
remediation
7.7
relevance
8.2
threat
6.4
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.