HIGH 7.5

CVE-2026-48059

Netty HAProxy: Unbalanced Reference Count in Nested PP2_TYPE_SSL TLV Parsing Leads to Memory Exhaustion

Description

Impact

The HAProxy PROXY protocol v2 codec in netty leaks native or heap memory on every connection when a client sends a syntactically valid header containing nested PP2_TYPE_SSL TLVs (type-length-value records) at depth two or greater. The leak occurs on the successful parse path — no exception is thrown, the message fires downstream, the decoder removes itself, and the application releases the HAProxyMessage normally. Yet the underlying cumulation buffer (a pooled, potentially direct ByteBuf allocated by the channel) remains permanently pinned.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
io.netty » netty-codec-haproxy
< 4.1.135.Final>= 4.2.0.Final, < 4.2.15.Final
4.1.135.Final, 4.2.15.Final

Blast radius

1affected artifacts
253affected versions
10,265dependent artifacts (est.)
546,349dependent versions

63% of the dependent artifacts (6,470) still pull an affected version in their latest release.

DepthDependent versions
Direct
7,101
2 hops
72,953
3 hops
224,931
4 hops
134,275
5 hops
80,467
6 hops
26,622

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.