REDHAT-BUG-2588738: Medium severity maven/io.netty/netty-handler vulnerability
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.1.139.Final - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.2.19.Final
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments using netty-handler with SniHandler, or with a subclass of AbstractSniHandler or SslClientHelloHandler, are affected when they use SNI-based SslContext selection. The issue is relevant where the default SslContext is less restrictive than a context selected for a particular SNI name.
Does exploitation require authentication or prior access?
No. An unauthenticated remote attacker only needs to be able to connect to the affected server and send a TLS connection beginning with a zero-length handshake record followed by a ClientHello.
What is the practical impact of a successful attack?
The server can select its default TLS context instead of the context assigned to the requested SNI. For example, a hostname configured to require mutual TLS can be served using the default context, bypassing that per-SNI client-certificate requirement.