/

CVE-2026-100665

Severity:

HIGH RISK

(7.5)

Improper Certificate Validation (CWE-295) in Netty QUIC

CVE-2026-100665

Deferred

Vulnerability type

Category:

Improper Certificate Validation

CWE:

CWE-295

Impact:

Hostname Authentication Bypass and Potential Man-in-the-Middle Attacks

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A hostname verification weakness in Netty's QUIC certificate validation path can prevent endpoint identification when a plain X509TrustManager is used. A network attacker may present a certificate chain for a different hostname if the configured trust manager accepts it, potentially enabling interception or impersonation of QUIC connections.

Affected context

The issue may occur in Netty QUIC clients that use the affected certificate verification callback together with a plain X509TrustManager and rely on HTTPS endpoint identification. In this configuration, the SSLEngine needed for hostname verification can be discarded before the trust manager processes the certificate, allowing trust-chain validation to succeed without the intended hostname check.

Exploit preconditions

  • Attack surface: Network path between a QUIC client and its intended peer
  • Required access: Ability to intercept, redirect, or otherwise influence the client's network connection
  • Trigger point: QUIC certificate verification during TLS connection establishment
  • Configuration condition: The client uses a plain X509TrustManager with HTTPS endpoint identification configured
  • Why exploitation is possible: The verification callback does not preserve the SSLEngine required to perform hostname authentication, so a trusted certificate for another hostname may be accepted

Why this happens

The root cause is an incomplete certificate-validation integration between Netty's QUIC support and Java's X509TrustManager APIs. The verification callback discards the SSLEngine when a plain trust manager is used, preventing endpoint identification from being applied even when HTTPS hostname verification is enabled. This maps to CWE-295: Improper Certificate Validation, because certificate-chain trust can be evaluated without confirming that the certificate identifies the intended endpoint.

Potential impact

  • A network attacker may impersonate the intended QUIC service
  • Sensitive application data could be exposed or altered
  • Clients may establish connections to an attacker-controlled endpoint
  • Authentication decisions based on the peer hostname could be bypassed
  • The issue could support broader man-in-the-middle activity

General mitigation guidance

Mitigation generally focuses on ensuring that certificate-chain validation and endpoint identity verification are both enforced for every QUIC connection.

Common defensive patterns include:

  • Preserving the connection context required for hostname verification
  • Using TLS and QUIC integrations that explicitly enforce endpoint identification
  • Avoiding trust configurations that validate chains without authenticating the intended hostname
  • Restricting trust stores to appropriate certificate authorities and minimizing trust scope
  • Applying certificate pinning or equivalent identity controls where operationally suitable
  • Treating certificate-validation failures as connection failures rather than recoverable warnings
  • Running clients with least privilege to limit consequences if a connection is intercepted

How teams detect issues like this

Organizations can look for this weakness through:

  • Static analysis and dependency review of QUIC certificate-verification callbacks
  • Code review checks confirming that endpoint identification remains enabled for plain X509TrustManager configurations
  • Integration tests using a trusted certificate issued for the wrong hostname and confirming that the connection is rejected
  • Policy enforcement requiring hostname verification for outbound TLS and QUIC connections
  • Runtime telemetry for unexpected certificate subjects, issuers, or verification failures
  • Automated security review tools that flag certificate validation paths lacking explicit hostname checks

Sources

SourceLink
github.comgithub.com/netty/netty/commit/09e72c4fd8007277121ed48db63a124b112b96fe
github.comgithub.com/netty/netty/commit/994e887ed9
github.comgithub.com/netty/netty/security/advisories/GHSA-mj35-3qqm-q387
vulncheck.comvulncheck.com/advisories/netty-4.2.11-through-4.2.17-quic-hostname-verification-bypass

Frequently asked

questions

It can be exploitable by an attacker positioned on the network path who can influence a QUIC client's connection and present a certificate chain accepted by the configured trust manager.

Application-level authentication is not necessarily required. Network positioning and the affected client-side certificate-validation configuration are the important prerequisites.

Ensure that QUIC certificate validation performs both trust-chain validation and hostname verification, with the connection context needed for endpoint identification preserved throughout verification.

Test negative hostname cases, require endpoint identification through security policy, review custom trust-manager integrations, and monitor outbound TLS or QUIC connections for unexpected peer identities.

Find out what's already
exploitable in your codebase.