REDHAT-BUG-2588747: Medium severity maven/io.netty/netty-codec-http vulnerability
HttpContentDecompressor(int maxAllocation) is documented to limit the size of the decompression buffer. For Content-Encoding: br, it passes maxAllocation to the single-argument BrotliDecoder constructor, which treats the value as the input-buffer size, not the output cap. The decoder's output buffer therefore stays at the default of 64 KiB. This is an incomplete fix for CVE-2026-42587, which addressed maxAllocation bypasses for Brotli, Snappy and Zstd.
A remote peer that sends a Brotli-compressed HTTP body can cause Netty to allocate and forward decompressed buffers of up to 65,536 bytes even when the application configured a smaller limit, such as 1024 bytes. Other encodings such as gzip enforce the configured limit. The impact is limited resource consumption, bounded by the 64 KiB default, and it weakens decompression-bomb protection in memory-constrained deployments.
Affected are users of netty-codec-http that use HttpContentDecompressor with a nonzero maxAllocation below 65,536 and that have Brotli support available at runtime. The affected versions are 4.2.13.Final up to but not including 4.2.16.Final, and 4.1.133.Final up to but not including 4.1.137.Final. Releases 4.2.16.Final and 4.1.137.Final contain the fix.
Affected versions: >= 4.2.13.Final, < 4.2.16.Final; >= 4.1.133.Final, < 4.1.137.Final Patched versions: 4.2.16.Final; 4.1.137.Final CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (5.3) CWE: CWE-400, CWE-770 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-j23p-mh75-24rx CVE requested by the Netty Project via PSIRTSUPT-32166.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.2.16.Final - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.1.137.Final
Event History
Frequently Asked Questions
Which deployments are affected?
Deployments using netty-codec-http with HttpContentDecompressor are affected when maxAllocation is nonzero and below 65,536, and Brotli support is available at runtime. The affected version ranges are 4.2.13.Final through before 4.2.16.Final and 4.1.133.Final through before 4.1.137.Final.
What does an attacker need to exploit this issue?
A remote peer must be able to send an HTTP body using Content-Encoding: br. The application must process that body through HttpContentDecompressor with a configured limit below 65,536 bytes.
Does this bypass affect every HTTP content encoding?
No. The described limit bypass applies to Brotli content encoding; gzip and other encodings cited in the report enforce the configured limit.
How can I determine whether the configured allocation limit is being bypassed?
Check whether HttpContentDecompressor is configured with a nonzero maxAllocation below 65,536 and whether Brotli is available at runtime. In affected versions, a Brotli-compressed response can produce and forward decompressed buffers up to the default 64 KiB despite a smaller configured limit.
What is the practical impact?
The impact is limited resource consumption rather than unbounded allocation. Decompressed buffers are bounded by the 64 KiB default, but this weakens decompression-bomb protections in memory-constrained deployments.