Io.netty:netty codec haproxy: Netty: [codec-haproxy] Signed-Byte Sentinel Collision in HAProxyMessageDecoder Leads to Unbounded Memory Exhaustion (CVE-2026-55851)
A vulnerability in the HAProxyMessageDecoder component of the netty codec-haproxy module causes a signed-byte sentinel collision during protocol version detection. This leads to an infinite loop where the decoder continually requests more data without consuming any bytes, resulting in unbounded memory growth and eventual JVM memory exhaustion. The issue arises when the 13th byte of the inbound stream is 0xFF, causing sign extension to -1, which matches the sentinel value for 'need more data'.
AI Analysis
Technical Summary
The HAProxyMessageDecoder in netty's codec-haproxy module reads the 13th byte of an inbound stream as a signed Java byte and widens it to an int without masking. When an attacker sends a PROXY protocol v2 prefix followed by a version byte of 0xFF, the sign extension produces -1, colliding with the decoder's sentinel value indicating 'need more data'. This causes the decoder to enter a version-detection loop, perpetually requesting more data without consuming bytes, preventing instantiation of the HeaderExtractor that enforces header size limits. Consequently, the ByteToMessageDecoder accumulates all subsequent inbound bytes into an unbounded buffer, leading to JVM direct memory exhaustion.
Potential Impact
This vulnerability allows an unauthenticated attacker to cause a denial of service by exhausting the JVM's direct memory allocation through unbounded buffer growth. The decoder's infinite loop prevents normal processing of inbound data, potentially disrupting services relying on netty's codec-haproxy module.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider implementing network-level protections to detect and block malicious PROXY protocol v2 messages with invalid version bytes. Avoid processing untrusted input with vulnerable versions of the codec-haproxy module.
Io.netty:netty codec haproxy: Netty: [codec-haproxy] Signed-Byte Sentinel Collision in HAProxyMessageDecoder Leads to Unbounded Memory Exhaustion (CVE-2026-55851)
Description
A vulnerability in the HAProxyMessageDecoder component of the netty codec-haproxy module causes a signed-byte sentinel collision during protocol version detection. This leads to an infinite loop where the decoder continually requests more data without consuming any bytes, resulting in unbounded memory growth and eventual JVM memory exhaustion. The issue arises when the 13th byte of the inbound stream is 0xFF, causing sign extension to -1, which matches the sentinel value for 'need more data'.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The HAProxyMessageDecoder in netty's codec-haproxy module reads the 13th byte of an inbound stream as a signed Java byte and widens it to an int without masking. When an attacker sends a PROXY protocol v2 prefix followed by a version byte of 0xFF, the sign extension produces -1, colliding with the decoder's sentinel value indicating 'need more data'. This causes the decoder to enter a version-detection loop, perpetually requesting more data without consuming bytes, preventing instantiation of the HeaderExtractor that enforces header size limits. Consequently, the ByteToMessageDecoder accumulates all subsequent inbound bytes into an unbounded buffer, leading to JVM direct memory exhaustion.
Potential Impact
This vulnerability allows an unauthenticated attacker to cause a denial of service by exhausting the JVM's direct memory allocation through unbounded buffer growth. The decoder's infinite loop prevents normal processing of inbound data, potentially disrupting services relying on netty's codec-haproxy module.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider implementing network-level protections to detect and block malicious PROXY protocol v2 messages with invalid version bytes. Avoid processing untrusted input with vulnerable versions of the codec-haproxy module.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-q6cq-mhr2-jmr5
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55851"]
- Ecosystems
- ["Maven"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a6150e99c2644c7f8da2339
Added to database: 07/22/2026, 23:23:21 UTC
Last enriched: 07/22/2026, 23:39:11 UTC
Last updated: 07/22/2026, 23:39:11 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.