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

CVE-2026-45416: Netty: SNI handler pre-allocates up to 16 MiB from nine attacker bytes

June 8, 2026

SslClientHelloHandler.decode() reads the 24-bit TLS handshake length and, when the ClientHello does not fit in the first record, eagerly allocates ctx.alloc().buffer(handshakeLength) (line 161). The guard at line 140 is handshakeLength > maxClientHelloLength && maxClientHelloLength != 0, and the commonly-used SniHandler/AbstractSniHandler constructors (SniHandler(Mapping), SniHandler(AsyncMapping), AbstractSniHandler()) pass maxClientHelloLength=0 and handshakeTimeoutMillis=0, so the length guard is disabled and no timeout is scheduled. A 16 MiB request exceeds the default pooled chunk size and becomes a huge/unpooled allocation performed immediately. The buffer is retained in the handler until the channel closes.

References

  • github.com/advisories/GHSA-x4gw-5cx5-pgmh
  • 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-x4gw-5cx5-pgmh
  • nvd.nist.gov/vuln/detail/CVE-2026-45416

Code Behaviors & Features

Detect and mitigate CVE-2026-45416 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-770: Allocation of Resources Without Limits or Throttling

Source file

maven/io.netty/netty-handler/CVE-2026-45416.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 09 Jun 2026 12:19:34 +0000.