NettyApplication

CVE-2026-48059

HIGH · 7.5 CVSS v3.1 Published 2026-06-12
Fix available
A fix is available. Upgrade to 4.1.135 / 4.2.15 or later.
See remediation →
84/100
Remediation priority · High
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Netty's HAProxy PROXY protocol v2 codec contains a memory leak where nested PP2_TYPE_SSL TLVs (at depth 2+) in a syntactically valid header cause the cumulation buffer (a pooled ByteBuf) to remain permanently pinned. The message parses successfully, fires downstream, and the decoder removes itself, but the underlying buffer is never released, causing memory leakage on every affected connection.

MitigationUpgrade Netty to version 4.1.135.Final or 4.2.15.Final which contains the patch for this vulnerability. If upgrading is not immediately feasible, consider disabling or restricting HAProxy PROXY protocol v2 support until the upgrade can be completed.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
NettyApplication
Affected:< 4.1.135>= 4.2.0, < 4.2.15

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Netty version
    Locate the Netty JAR files in your deployment (e.g., in lib/, WEB-INF/lib/, or Maven local repository) and check the filename for the version number (e.g., netty-common-4.1.x.jar). Alternatively, query your dependency management (Maven pom.xml, Gradle build.gradle) for the netty version.
    Affected if The version is lower than 4.1.135, or is 4.2.0 through 4.2.14.
  2. Confirm HAProxy PROXY protocol v2 codec is in use
    Search your codebase for references to HAProxy message handling classes, such as HAProxyMessageDecoder, HAProxyProtocolCodec, or HAProxyDecoder. Check Netty server Bootstrap/ServerBootstrap pipeline configurations for these codecs.
    Affected if The HAProxy PROXY protocol v2 decoder/codec is configured in any Netty channel pipeline.
  3. Verify SSL TLV configuration
    Examine the HAProxy codec/decoder initialization code for PP2_TYPE_SSL or SSL-specific TLV (Type-Length-Value) configuration. Look for any SSL option flags or TLV handler setup in the HAProxy protocol configuration.
    Affected if SSL TLV support (PP2_TYPE_SSL) is enabled in the HAProxy PROXY protocol configuration, particularly if nested TLVs (depth 2+) are possible.
  4. Monitor for pinned memory on affected connections
    If running in a test or staging environment, use memory profiling tools (VisualVM, JProfiler) or Netty's ResourceLeakDetector set to paranoid mode (-Dio.netty.leakDetection=PARANOID) to observe ByteBuf pool retention on connections that process HAProxy PROXY headers with nested SSL TLVs.
    Affected if Pooled ByteBuf instances accumulate and are not released after successful message processing on connections using the HAProxy codec with SSL TLVs.

You are affected if your deployed Netty version is below 4.1.135 or between 4.2.0 and 4.2.14, AND you use the HAProxy PROXY protocol v2 codec with SSL TLV support enabled.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 4.1.135 / 4.2.15 or later
Fixed in 4.1.1354.2.15
Interim mitigation

Upgrade Netty to version 4.1.135.Final or 4.2.15.Final which contains the patch for this vulnerability. If upgrading is not immediately feasible, consider disabling or restricting HAProxy PROXY protocol v2 support until the upgrade can be completed.

Recommended fix High confidence

4.1.135.Final (for 4.1.x line) or 4.2.15.Final (for 4.2.x line)

  1. Identify which Netty 4.1.x or 4.2.x version line your project currently uses by inspecting your Maven pom.xml or Gradle build file
  2. If using Netty 4.1.x (version < 4.1.135), upgrade netty-all or io.netty dependencies to version 4.1.135.Final
  3. If using Netty 4.2.x (version >= 4.2.0 and < 4.2.15), upgrade netty-all or io.netty dependencies to version 4.2.15.Final
  4. Update the version in your dependency management file (pom.xml, build.gradle, etc.)
  5. Run your build tool to fetch the new Netty version (mvn clean install or gradle build)
  6. Verify the upgrade by confirming the new Netty version is resolved in your dependency tree
  7. Test your application, particularly any functionality using HAProxy PROXY protocol v2, to confirm the memory leak is resolved

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Netty Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing4.0 h
  • Review / QA1.0 h
9.0 hours of engineering $1,540
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,464.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-48059 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-48059 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data