CVE 8.7 HIGH

Netty HAProxy: Unbalanced Reference Count in Nested PP2_TYPE_SSL TLV Parsing Leads to Memory Exhaustion_CVE-2026-48059

8.7 / 10
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

Description

Netty is a network application framework for development of protocol servers and clients. Prior to versions 4.1.135.Final and 4.2.15.Final, 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. Versions 4.1.135.Final and 4.2.15.Final patch the issue.

AI Analysis

Memory leak in Netty's HAProxy PROXY protocol v2 codec due to unbalanced reference count in nested PP2_TYPE_SSL TLV parsing

Basic Information

ID CVE-2026-48059
Source GitHub_M
Published Jun 12, 2026 at 14:42

Affected Product

Vendor netty
Product netty
Version >= 4.2.0.Final, < 4.2.15.Final
Affected Versions netty netty >= 4.2.0.Final, < 4.2.15.Final
netty netty < 4.1.135.Final

CWE Classification

AI Assessment

AI Score 8.7 / 10
AI Severity High
Vendor The Netty Project
Product Netty
Version 4.1.0.Final to 4.1.134.Final, 4.2.0.Final to 4.2.14.Final

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.