HIGH 7.5

CVE-2026-45416

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

Description

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
io.netty » netty-handler
< 4.1.135.Final>= 4.2.0.Final, < 4.2.15.Final
4.1.135.Final, 4.2.15.Final

Blast radius

1affected artifacts
348affected versions
56,775dependent artifacts (est.)
2,320,036dependent versions

70% of the dependent artifacts (39,841) still pull an affected version in their latest release.

DepthDependent versions
Direct
90,679
2 hops
422,875
3 hops
777,396
4 hops
514,903
5 hops
325,626
6 hops
188,557

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.