Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. io.netty/netty-codec-haproxy
  4. ›
  5. CVE-2026-48059

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

June 11, 2026 (updated June 12, 2026)

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.

References

  • github.com/advisories/GHSA-h2qv-fj59-j46j
  • github.com/netty/netty/releases/tag/netty-4.1.135.Final
  • github.com/netty/netty/releases/tag/netty-4.2.15.Final
  • github.com/netty/netty/security/advisories/GHSA-h2qv-fj59-j46j
  • nvd.nist.gov/vuln/detail/CVE-2026-48059

Code Behaviors & Features

Detect and mitigate CVE-2026-48059 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.1.135, all versions starting from 4.2.0 before 4.2.15

Fixed versions

  • 4.1.135
  • 4.2.15

Solution

Upgrade to versions 4.1.135, 4.2.15 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-401: Missing Release of Memory after Effective Lifetime

Source file

maven/io.netty/netty-codec-haproxy/CVE-2026-48059.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:45 +0000.