Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-42584

Netty has HttpClientCodec response desynchronization
Back to all
CVE

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. 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.

Package Versions Affected

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.3
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
C
H
U
7.3
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Related Resources

No items found.

References

https://github.com/netty/netty/security/advisories/GHSA-57rv-r2g8-2cj3, https://nvd.nist.gov/vuln/detail/CVE-2026-42584, https://github.com/netty/netty

Severity

7.3

CVSS Score
0
10

Basic Information

Base CVSS
7.3
EPSS Probability
0.00779%
EPSS Percentile
0.52842%
Introduced Version
4.2.0.Alpha1,4.0.0.Alpha1,5.0.0.Alpha1,3.2.0.CR1,3.3.0.Final,4.0.0.Beta1,4.1.65.Final,0
Fix Available
4.2.13.Final,4.1.133.Final,0.27.1-r1,2.54.0-r2,4.18.1-r1,2.9.0-r6,2.9.0-r8,4.0.10-r1,4.2.1-r2,4.0.9-r16,4.2.1-r3,3.2.1-r3,8.8.24-r1,8.9.5-r2,8.6.39-r6,8.7.29-r1,0.5.4-r26,0.6.3-r7,8.19.16-r0,9.3.5-r0,9.4.1-r0,4.43.0.20260404-r2,37.0.0-r1,8.19.15-r1,9.1.10-r5,9.2.8-r3,9.3.4-r1,9.1.10-r12,9.2.8-r1,12.9.0-r0,12.5.0-r1,1.56.0-r6,2.7.0-r14,16.1.3-r2,1.4.2-r10,1.4.2-r9,1.0.0-r4,2025.2.4-r6,2025.4.3-r8,2026.0.2-r8,2026.1.0-r1,2025.2.4-r7,2025.4.3-r9,2026.0.2-r9,26.6.1-r2,26.6.1-r3,1.20.3-r6,1.21.4-r2,1.22.1-r1,0.12.0-r33,4.14.0-r10,9.0.8-r23,9.1.10-r8,9.2.8-r4,9.3.4-r4,0.1.117-r1,2026.01.4-r1,5.26.25-r2,2023.40-r4,2.19.4-r14,3.7.0-r0,1.5.0-r2,3.5.28-r3,2.6.0-r9,4.44.0-r0,26.7.0.124771-r0,3.5.8-r13,4.0.2-r12,4.1.2-r1,3.5.8-r1,4.1.1-r14,0.9.0-r0,0.51.0-r25,1.0.0-r0,0.10.5-r12,4.3.1.1-r5,481-r0,13.9-r13,4.14.5-r0,3.6.1-r6

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading