# CVE-2026-55851: Netty codec-haproxy: Signed-Byte Sentinel Collision in HAProxyMessageDecoder Leads to Unbounded Memory Exhaustion

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2026-07-21T21:22:34.879Z
- Modified: 2026-09-10T03:51:11.783Z
- Also known as: GHSA-q6cq-mhr2-jmr5
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- netty netty: >= 4.2.0.Final, < 4.2.16.Final; >= 4.1.0.Final, < 4.1.136.Final; from 4.1.0 before 4.1.136; from 4.2.0 before 4.2.16
- io.netty:netty-codec-haproxy (Maven): from 4.2.0.Final before 4.2.16.Final; from 4.1.0.Final before 4.1.136.Final

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/netty/netty/security/advisories/GHSA-q6cq-mhr2-jmr5> (vendor-advisory, web)
- <https://github.com/netty/netty/commit/5b68c61f37aa4a3045cba624cbea239655c9003b> (patch, web)
- <https://github.com/netty/netty/commit/bb2ff68a1fb71cb4b0eb9a9e17b66c52aff680c6> (patch, web)
- <https://github.com/netty/netty/releases/tag/netty-4.1.136.Final> (release-notes, web)
- <https://github.com/netty/netty/releases/tag/netty-4.2.16.Final> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-55851> (advisory)
- <https://github.com/netty/netty> (package)

## Sources

- CVE List: [CVE-2026-55851](https://www.cve.org/CVERecord?id=CVE-2026-55851), CVE Terms of Use, modified 2026-07-23
- GitHub Advisory Database: [GHSA-q6cq-mhr2-jmr5](https://github.com/advisories/GHSA-q6cq-mhr2-jmr5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-55851](https://nvd.nist.gov/vuln/detail/CVE-2026-55851), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2026-55851 · Whole record: https://cve.day/CVE-2026-55851.json · Rebuilt by cve.day 2026-11-25T22:59:29.461Z
