Vulnerability
CVE-2026-55851
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.
224 advisories report this vulnerability, across 7 ecosystems.
Advisories in Wolfi
- CGA-23xj-fw29-f8rm
- CGA-2vvm-jj5q-7f87
- CGA-3gm3-jhf7-p4rm
- CGA-4fm6-xq26-vmvv
- CGA-4g52-9r8f-c7gc
- CGA-4m53-xh37-98q7
- CGA-5755-m8wr-762v
- CGA-68wc-jjf6-xv73
- CGA-6cr3-92vm-cp84
- CGA-73wq-x3mv-5pgc
- CGA-843g-c79j-68vj
- CGA-857m-xxg9-gr2j
- CGA-8xv8-hf38-3rv9
- CGA-993w-396c-qgm9
- CGA-c857-r789-qr38
- CGA-cg9f-jx5f-3xg4
- CGA-cmm7-fmw9-pvjv
- CGA-fm8p-f7v2-fwmv
- CGA-gfw8-x2cw-fgjc
- CGA-gjxw-jqpj-q5hh
- CGA-gwx8-cr3j-5c9w
- CGA-h2vg-7536-6vgg
- CGA-hgr9-f6p2-hrq9
- CGA-j2vf-wjcv-3r8j
- CGA-jpjq-c264-745p
- CGA-m6f3-8g9q-27xm
- CGA-mpf9-vrfp-wh22
- CGA-q3jr-5ppv-8jw7
- CGA-qhg3-rp8f-7x5r
- CGA-rjx6-q6h4-g39p
- CGA-vhm7-xjgp-582h
- CGA-vr9q-4qv3-wxq2
- CGA-vw87-p9mj-mf7w
- CGA-w8rf-r6cj-g63x
- CGA-xxcq-q8g8-6vx7
References
- https://github.com/netty/netty/commit/5b68c61f37aa4a3045cba624cbea239655c9003b
- https://github.com/netty/netty/commit/bb2ff68a1fb71cb4b0eb9a9e17b66c52aff680c6
- https://github.com/netty/netty/releases/tag/netty-4.1.136.Final
- https://github.com/netty/netty/releases/tag/netty-4.2.16.Final
- https://github.com/netty/netty/security/advisories/GHSA-q6cq-mhr2-jmr5