Vulnerabilities in pkg:maven/io.netty/netty-codec-haproxy
PACKAGECVE-2026-48059 is a HIGH (CVSS 7.5) unbalanced reference count vulnerability (CWE-1286: Improper Validation of Syntactic Correctness of Input) affecting Netty HAProxy libraries in the Maven ecosystem. The issue involves unbalanced reference count in nested pp2_type_ssl tlv parsing leads to memory exhaustion. Remediation is available by upgrading affected packages to version 4.2.15.Final, 4.1.135.Final.
pkg:maven/io.netty/netty-codec-haproxy
Vulnerability advisories affecting package pkg:maven/io.netty/netty-codec-haproxy. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-h2qv-fj59-j46j | CVE-2026-48059 | HIGH | Netty HAProxy: Unbalanced Reference Count in Nested PP2_TYPE_SSL TLV Parsing Leads to Memory Exhaustion |
| GHSA-wh89-7897-x99h | CVE-2026-59919 | MODERATE | Netty: HAProxy V1 Protocol CRLF Injection via AF_UNIX Address |
| GHSA-q6cq-mhr2-jmr5 | CVE-2026-55851 | HIGH | Netty: [codec-haproxy] Signed-Byte Sentinel Collision in HAProxyMessageDecoder Leads to Unbounded Memory Exhaustion |
| GHSA-cc37-9q2j-3hfv | CVE-2026-44893 | HIGH | Netty: HAProxy SSL TLV parsing leaks retained slice on invalid TLV length |
| GHSA-fx2c-96vj-985v | CVE-2022-41881 | MODERATE | HAProxyMessageDecoder Stack Exhaustion DoS |
CVE-2026-48059 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-48059
To remediate this vulnerability, upgrade all affected Netty HAProxy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-haproxy</artifactId>
<version>4.2.15.Final</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-haproxy</artifactId>
<version>4.1.135.Final</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.netty
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-48059, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.netty
Analyze the terminal output to locate any version of Netty HAProxy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.15.Final), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.netty command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1286: Improper Validation of Syntactic Correctness of Input, where the product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax. In Netty HAProxy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-48059 Affected Netty HAProxy Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.netty:netty-codec-haproxy
|
Maven |
≥ 4.2.0.Final
< 4.2.15.Final
|
4.2.15.Final
|
|
io.netty:netty-codec-haproxy
|
Maven |
< 4.1.135.Final
|
4.1.135.Final
|
References
Frequently Asked Questions
What is CVE-2026-48059?
Which Netty HAProxy versions are affected?
What version fixes CVE-2026-48059?
Is netty-codec-haproxy affected?
What is the CVSS score of CVE-2026-48059?
What CWE is associated with CVE-2026-48059?
How can I check Maven dependencies for CVE-2026-48059?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h2qv-fj59-j46j",
"modified" : "2026-09-18T15:31:40Z",
"published" : "2026-06-11T20:19:27Z",
"aliases" : [ "CVE-2026-48059" ],
"summary" : "Netty HAProxy: Unbalanced Reference Count in Nested PP2_TYPE_SSL TLV Parsing Leads to Memory Exhaustion",
"details" : "### Impact\nThe 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "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" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.netty:netty-codec-haproxy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0.Final"
}, {
"fixed" : "4.2.15.Final"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.2.14.Final"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.netty:netty-codec-haproxy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.135.Final"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.1.134.Final"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/netty/netty/security/advisories/GHSA-h2qv-fj59-j46j"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-48059"
}, {
"type" : "WEB",
"url" : "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-48059.json"
}, {
"type" : "WEB",
"url" : "https://github.com/netty/netty/releases/tag/netty-4.2.15.Final"
}, {
"type" : "WEB",
"url" : "https://github.com/netty/netty/releases/tag/netty-4.1.135.Final"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/netty/netty"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2488437"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2026-48059"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:66488"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:65126"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:54435"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53806"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53646"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53645"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53644"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:50085"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:48151"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:41951"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:37390"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:36820"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:34608"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:26586"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:26018"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:26017"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1286", "CWE-401" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-11T20:19:27Z",
"nvd_published_at" : "2026-06-12T16:16:30Z"
}
}