CVE-2026-142446: Io.netty/netty-handler: netty: sni routing bypass to default sslcontext via leading zero-length tls handshake record

Published Dec 2, 2026
·
Updated

A flaw was found in netty-handler. An unauthenticated remote attacker can exploit this vulnerability by sending a Transport Layer Security (TLS) connection that begins with a zero-length handshake record before the client hello message. The server mishandles this empty record, causing it to ignore the Server Name Indication (SNI) header and fall back to the default TLS configuration context. As a result, an attacker can bypass domain-specific security controls, such as mutual TLS (mTLS) client-certificate authentication.

Other sources

Netty's SslClientHelloHandler, used for SNI-based SslContext selection, mishandles a TLS connection whose first record is a zero-length handshake record. The handler treats this record as "no ClientHello present" and selects the default SslContext rather than skipping the empty record and parsing the real ClientHello that follows. The still-buffered bytes, including the empty record and the real ClientHello, are then replayed to an SslHandler built from the default context. A TLS engine that tolerates a leading empty handshake record, such as the JDK (JSSE) SSLEngine, skips it, reads the real SNI, and completes the handshake on the wrong context. This is an incomplete fix for CVE-2026-75595, because the empty-record branch returns before the reassembly logic added by that fix runs.

An unauthenticated remote attacker who can connect to an affected server can use this to bypass per-SNI context selection. A connection whose SNI maps to a stricter context, for example one that requires client-certificate (mTLS) authentication, is instead served by the default context.

Affected are users of netty-handler that use SniHandler, or any AbstractSniHandler or SslClientHelloHandler subclass, to select an SslContext by SNI. Affected versions are 4.1.x up to and including 4.1.138.Final and 4.2.x from 4.2.0.Final up to and including 4.2.18.Final. The issue is fixed in 4.1.139.Final and 4.2.19.Final.

Affected versions: >= 4.2.0.Final, <= 4.2.18.Final; <= 4.1.138.Final Patched versions: 4.2.19.Final; 4.1.139.Final CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N (6.5) CWE: CWE-636, CWE-754 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-jp47-57pp-4qpp CVE requested by the Netty Project via PSIRTSUPT-32166.

— Red Hat

Affected Software

1 affected component
maven/io.netty/netty-handler<=4.1.138.Final, >=4.2.0.Final<=4.2.18.Final

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade netty-handler to a version that resolves this vulnerability.

    Fixed in 4.1.139.Final
  2. Upgrade

    Upgrade netty-handler to a version that resolves this vulnerability.

    Fixed in 4.2.19.Final

Event History

Dec 2, 2026
Data Sourced
via Red Hat·04:50 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·07:46 PM
Data Sourced
via MITRE·07:46 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:20 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this bypass?

Deployments using netty-handler's SslClientHelloHandler for SNI-based SslContext selection are exposed when their default TLS context has weaker or different security controls than an SNI-selected context. A notable case is where a domain-specific context requires mTLS but the default context does not.

2

What must an attacker send to trigger the issue?

An unauthenticated remote attacker must initiate a TLS connection with a zero-length handshake record before the real ClientHello. The TLS engine must tolerate the leading empty handshake record; the JDK JSSE SSLEngine is identified as one that does.

3

How can I determine whether a service is affected?

Check whether the service uses SslClientHelloHandler to choose TLS contexts from SNI and whether the default SslContext differs in security policy from SNI-specific contexts. Affected behavior is indicated if a connection with a leading zero-length handshake record completes using the default context despite a later ClientHello containing SNI.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203