Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Io.netty:netty codec haproxy: Netty: [codec-haproxy] Signed-Byte Sentinel Collision in HAProxyMessageDecoder Leads to Unbounded Memory Exhaustion (CVE-2026-55851)

0
High
Published: 07/22/2026 (07/22/2026, 21:23:25 UTC)
Source: GCVE Database
Product: io.netty:netty-codec-haproxy

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Mavenghsa
io.netty:netty-codec-haproxy
Affected versions
>=4.2.0.Final <4.2.16.Final
Mavenghsa
io.netty:netty-codec-haproxy
Affected versions
>=4.1.0.Final <4.1.136.Final

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 23:39:11 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses