Intel

AIKIDO-2026-739270

netty-codec-http2 is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)CVE-2026-56819 Published 4 days ago

75

High Risk

This Affects:

JAVAnetty-codec-http2
4.1.0.Final - 4.1.135.Final
Fixed in 4.1.136.Final
4.2.0 - 4.2.15.Final
Fixed in 4.2.16.Final
Are you affected? Scan for Free

TL;DR

Netty's HTTP/2 content decompression via DelegatingDecompressorFrameListener leaks direct ByteBuf memory when a remote peer sends DATA frames for a stream whose decompressor channel has already been closed. In Http2Decompressor.decompress(...), data.retain() increments the buffer reference count before writeInbound(...), but when the internal decompressor EmbeddedChannel is already closed, ensureOpen() throws and the extra reference is never released on the error path. A remote, unauthenticated attacker can repeat this over a long-lived HTTP/2 connection to exhaust direct memory and crash the JVM with OutOfMemoryError.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application enables HTTP/2 content decompression via DelegatingDecompressorFrameListener.

Background info

netty-codec-http2 is vulnerable to Denial of Service (DoS) in versions 4.1.0.Final - 4.1.135.Final and 4.2.0 - 4.2.15.Final.

How to fix this

Upgrade the io.netty:netty-codec-http2 library to the patch version.