CVE-2026-42584: Netty has HttpClientCodec response desynchronization
Summary If HttpClientCodec is configured, there are use cases when a response body from one request, can be parsed as another's. Details HttpClientCodec pairs each inbound response with an outbound request by queue.poll() once per response, including for 1xx. If the client pipelines GET then HEAD and the server sends 103, then 200 with GET body, then 200 for HEAD, the queue pairs HEAD with the first 200.
Published May 7, 2026 · Updated May 14, 2026
Affected packages
io.netty:netty-codec-http
- Ecosystem
- Maven
- Affected
- >= 4.2.0.Alpha1, <= 4.2.12.Final
- Fixed in
- 4.2.13.Final
- Check
mvn dependency:tree -Dincludes=io.netty:netty-codec-http
io.netty:netty-codec-http
- Ecosystem
- Maven
- Affected
- <= 4.1.132.Final
- Fixed in
- 4.1.133.Final
- Check
mvn dependency:tree -Dincludes=io.netty:netty-codec-http
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
If HttpClientCodec is configured, there are use cases when a response body from one request, can be parsed as another's.
Details
HttpClientCodec pairs each inbound response with an outbound request by queue.poll() once per response, including for 1xx. If the client pipelines GET then HEAD and the server sends 103, then 200 with GET body, then 200 for HEAD, the queue pairs HEAD with the first 200. The HEAD rule then skips reading that message’s body, so the GET entity bytes stay on the stream and the following 200 is parsed from the wrong offset.
Prerequisites
- HTTP/1.1 pipelining
- HEAD in the pipeline
- The server sends 1xx
PoC
@Test
public void test() {
EmbeddedChannel channel = new EmbeddedChannel(new HttpClientCodec());
assertTrue(channel.writeOutbound(new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "/1")));
ByteBuf request = channel.readOutbound();
request.release();
assertNull(channel.readOutbound());
assertTrue(channel.writeOutbound(new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.HEAD, "/2")));
request = channel.readOutbound();
request.release();
assertNull(channel.readOutbound());
String responseStr = "HTTP/1.1 103 Early Hints\r\n\r\n" +
"HTTP/1.1 200 OK\r\nContent-Length: 5\r\n\r\nhello" +
"HTTP/1.1 200 OK\r\n\r\n";
assertTrue(channel.writeInbound(Unpooled.copiedBuffer(responseStr, CharsetUtil.US_ASCII)));
// Response 1
HttpResponse response = channel.readInbound();
assertEquals(HttpResponseStatus.EARLY_HINTS, response.status());
LastHttpContent last = channel.readInbound();
assertEquals(0, last.content().readableBytes());
last.release();
// Response 2
response = channel.readInbound();
assertEquals(HttpResponseStatus.OK, response.status());
last = channel.readInbound();
assertEquals(0, last.content().readableBytes());
last.release();
// Response 3
FullHttpResponse response1 = channel.readInbound();
assertTrue(response1.decoderResult().isFailure());
assertEquals(0, response1.content().readableBytes());
response1.release();
assertFalse(channel.finish());
}Impact
Integrity/availability of HTTP parsing on that connection, unsafe reuse of the socket.
Credited to violetagg.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-59903
Netty Vulnerable to Cache Poisoning and Information Disclosure via CORS Vary Header Overwrite
medium6.5Aug 17, 2026CVE-2026-55831
Netty SPDY SETTINGS frame count materializes unbounded settings map
high7.5Jul 22, 2026CVE-2026-55833
Netty SPDY zlib header block continues decoded expansion after maxHeaderSize truncation
high7.5Jul 22, 2026CVE-2026-56745
Netty: [SpdyHttpDecoder] ByteBuf Reference Leak on RST_STREAM Leads to Native Memory Exhaustion
high8.7Jul 22, 2026CVE-2026-56746
Netty: Security Control Bypass via CORS Short-Circuit Failure
medium6.5Jul 22, 2026CVE-2026-59898
Netty: WebSockets V07/V08 handshaker missing Connection/Upgrade validation
medium6.3Jul 22, 2026
