{"id":"CVE-2026-55851","published":"2026-07-21T21:22:34Z","modified":"2026-07-23T14:04:47Z","title":"Netty codec-haproxy: Signed-Byte Sentinel Collision in HAProxyMessageDecoder Leads to Unbounded Memory Exhaustion","vendor":"netty","product":"netty","tier":"tail","description":{"text":"Netty is a network application framework for development of protocol servers and clients. In versions 4.2.0.Final up to (but not including) 4.2.16.Final, and 4.1.0.Final up to (but not including) 4.1.135, the `HAProxyMessageDecoder` in Netty's `codec-haproxy` module performs protocol version detection by reading the 13th byte as a signed Java `byte` and widening it to `int` without masking; a PROXY protocol v2 binary prefix followed by version byte `0xFF` sign-extends to `-1`, collides with the decoder's need-more-data sentinel, and causes `ByteToMessageDecoder` to accumulate inbound bytes in an unbounded `cumulation` buffer until direct memory is exhausted. This issue is fixed in versions 4.1.136.Final and 4.2.16.Final.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0063,"percentile":0.51122,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/netty/netty/security/advisories/GHSA-q6cq-mhr2-jmr5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/netty/netty/commit/5b68c61f37aa4a3045cba624cbea239655c9003b","tags":["x_refsource_MISC"]},{"url":"https://github.com/netty/netty/commit/bb2ff68a1fb71cb4b0eb9a9e17b66c52aff680c6","tags":["x_refsource_MISC"]},{"url":"https://github.com/netty/netty/releases/tag/netty-4.1.136.Final","tags":["x_refsource_MISC"]},{"url":"https://github.com/netty/netty/releases/tag/netty-4.2.16.Final","tags":["x_refsource_MISC"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":10.22},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"netty","affectedVersions":[{"vendor":"netty","product":"netty","versions":[">= 4.2.0.Final, < 4.2.16.Final",">= 4.1.0.Final, < 4.1.136.Final"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-23T14:04:36.269979Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"io.netty:netty-codec-haproxy","vulnerableRanges":[">=4.2.0.Final, <4.2.16.Final",">=4.1.0.Final, <4.1.136.Final"],"patched":["4.2.16.Final","4.1.136.Final"],"from":["GHSA-q6cq-mhr2-jmr5"],"provenance":"source"}],"summary":{"text":"The flaw is in the HAProxyMessageDecoder of Netty's codec-haproxy module, where protocol version detection reads the 13th byte as a signed byte without masking, so a PROXY protocol v2 prefix followed by 0xFF collides with the decoder's need-more-data sentinel. An unauthenticated remote attacker with network access to a Netty server using this decoder can, without any user interaction, cause inbound bytes to accumulate in an unbounded buffer until direct memory is exhausted, resulting in denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:03:34Z"},"euvd":{"id":"EUVD-2026-46438","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-41881","published":"2022-12-12","fixed":"4.1.86.Final","kev":false},{"cve":"CVE-2026-44893","published":"2026-06-12","fixed":"4.2.15.Final","kev":false,"link":{"from":"CVE-2026-44893","to":"CVE-2026-55851","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:io.netty:netty-codec-haproxy","fromFixed":"4.2.15.Final","toFixed":"4.2.16.Final","daysApart":39}]}},{"cve":"CVE-2026-48059","published":"2026-06-12","fixed":"4.2.15.Final","kev":false},{"cve":"CVE-2026-55851","published":"2026-07-21","fixed":"4.2.16.Final","kev":false},{"cve":"CVE-2026-59919","published":"2026-07-29","fixed":"4.2.16.Final","kev":false}],"package":"Maven:io.netty:netty-codec-haproxy"}}