Netty
Netty: HttpContentDecompressor maxAllocation bypass via Content-Encoding: br/zstd/snappy enables decompression bomb DoS
Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, HttpContentDecompressor accepts a maxAllocation parameter to limit decompression buffer size and prevent decompression bomb attacks. This limit is correctly enforced for gzip and deflate encodings via ZlibDecoder, but is silently ignored when the content encoding is br (Brotli), zstd, or snappy. An attacker can bypass the configured decompression limit by sending a compressed payload with Content-Encoding: br instead of Content-Encoding: gzip, causing unbounded memory allocation and out-of-memory denial of service. The same vulnerability exists in DelegatingDecompressorFrameListener for HTTP/2 connections. This vulnerability is fixed in 4.2.13.Final and 4.1.133.Final.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.2.0.Alpha1, < 4.2.13.Final
- < 4.1.133.Final
Fixed in 4.2.13.Final, 4.1.133.Final
- >= 4.2.0.Alpha1, < 4.2.13.Final
- < 4.1.133.Final
Fixed in 4.2.13.Final, 4.1.133.Final
- >= 4.2.0.Alpha1, < 4.2.13.Final
- < 4.1.133.Final
Fixed in 4.2.13.Final, 4.1.133.Final
Mitigation
Upgrade netty to 4.2.13.Final or 4.1.133.Final or later.
Upgrade netty-codec-http to 4.2.13.Final or 4.1.133.Final or later.
Upgrade netty-codec-http2 to 4.2.13.Final or 4.1.133.Final or later.
References
- Vendor advisory github.com/netty/netty/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.