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)
| Artifact | Affected versions | Fixed 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
63% of the dependent artifacts (6,470) still pull an affected version in their latest release.
| Depth | Dependent 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
- io.netty » netty-all3,584 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.zookeeper » zookeeper2,044 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.hadoop » hadoop-hdfs1,377 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- io.quarkus » quarkus-resteasy1,251 usages
- org.apache.curator » curator-recipes1,197 usages
- org.apache.curator » curator-framework1,070 usages
- org.apache.curator » curator-test1,002 usages
- org.apache.flink » flink-streaming-java982 usages
- org.apache.hbase » hbase-client960 usages
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.
References
- Webhttps://github.com/netty/netty/security/advisories/GHSA-h2qv-fj59-j46j
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-48059
- Webhttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-48059.json
- Webhttps://github.com/netty/netty/releases/tag/netty-4.2.15.Final
- Webhttps://github.com/netty/netty/releases/tag/netty-4.1.135.Final
- Packagehttps://github.com/netty/netty
- Webhttps://bugzilla.redhat.com/show_bug.cgi?id=2488437
- Webhttps://access.redhat.com/security/cve/CVE-2026-48059
- Webhttps://access.redhat.com/errata/RHSA-2026:66488
- Webhttps://access.redhat.com/errata/RHSA-2026:65126
- Webhttps://access.redhat.com/errata/RHSA-2026:54435
- Webhttps://access.redhat.com/errata/RHSA-2026:53806
- Webhttps://access.redhat.com/errata/RHSA-2026:53646
- Webhttps://access.redhat.com/errata/RHSA-2026:53645
- Webhttps://access.redhat.com/errata/RHSA-2026:53644
- Webhttps://access.redhat.com/errata/RHSA-2026:50085
- Webhttps://access.redhat.com/errata/RHSA-2026:48151
- Webhttps://access.redhat.com/errata/RHSA-2026:41951
- Webhttps://access.redhat.com/errata/RHSA-2026:37390
- Webhttps://access.redhat.com/errata/RHSA-2026:36820
- Webhttps://access.redhat.com/errata/RHSA-2026:34608
- Webhttps://access.redhat.com/errata/RHSA-2026:26586
- Webhttps://access.redhat.com/errata/RHSA-2026:26018
- Webhttps://access.redhat.com/errata/RHSA-2026:26017
