CVE-2026-50010
Java vulnerability analysis and mitigation

Overview

CVE-2026-50010 is a TLS hostname verification bypass vulnerability in the Netty network application framework, specifically in the io.netty:netty-handler Maven package. The flaw causes SimpleTrustManagerFactory.engineGetTrustManagers() to silently disable hostname verification when a client is configured with a custom X509TrustManager, enabling man-in-the-middle attacks against affected Netty clients. It affects all Netty versions up to and including 4.1.134.Final and versions 4.2.0.Final through 4.2.14.Final. The vulnerability was published by the Netty project on June 5, 2026, and assigned a CVSS v3.1 base score of 7.5 (High) (Github Advisory, Netty Advisory).

Technical details

The root cause (CWE-347: Improper Verification of Cryptographic Signature) lies in how SimpleTrustManagerFactory.engineGetTrustManagers() wraps a user-supplied plain X509TrustManager in X509TrustManagerWrapper. This wrapper extends X509ExtendedTrustManager but implements the 3-argument checkServerTrusted(chain, authType, SSLEngine) by discarding the SSLEngine and delegating to the 2-argument version. Because the wrapped object is already an X509ExtendedTrustManager, neither SunJSSE's AbstractTrustManagerWrapper nor Netty's own OpenSslX509TrustManagerWrapper will re-wrap it to add endpoint identification logic. The net effect is that any Netty client constructed via SslContextBuilder.forClient().trustManager(somePlainX509TrustManager) performs no hostname verification whatsoever — even in Netty 4.2, which sets endpointIdentificationAlgorithm="HTTPS" by default (Github Advisory, Netty Advisory).

Impact

An unauthenticated network attacker can perform a man-in-the-middle (MitM) attack against any Netty client that uses a custom X509TrustManager via SslContextBuilder.forClient().trustManager(). The attacker can present any valid X.509 certificate — regardless of whether it matches the target hostname — and the client will accept the TLS connection without complaint, allowing interception and reading of all encrypted traffic intended for the legitimate server. The primary impact is high confidentiality loss; integrity and availability are not directly affected by this vulnerability. Downstream products built on Netty, such as IBM Enterprise Build of Quarkus and Red Hat Quarkus-based offerings, are also affected (Github Advisory, IBM Advisory).

Exploitation steps

  1. Identify vulnerable targets: Determine if the target application uses Netty versions ≤ 4.1.134.Final or 4.2.0–4.2.14.Final and is configured with a custom X509TrustManager via SslContextBuilder.forClient().trustManager().
  2. Establish a MitM position: Position yourself on the network path between the Netty client and its intended TLS server (e.g., via ARP spoofing, DNS hijacking, or rogue Wi-Fi access point).
  3. Obtain or generate a valid X.509 certificate: Acquire any valid TLS certificate — it does not need to match the target hostname, since hostname verification is disabled. A self-signed certificate or one issued for a different domain will be accepted.
  4. Intercept the TLS handshake: Terminate the TLS connection from the Netty client using your certificate. Because X509TrustManagerWrapper discards the SSLEngine during checkServerTrusted, the client will not validate the hostname against the certificate's CN/SAN fields.
  5. Decrypt and relay traffic: Forward the decrypted traffic to the legitimate server (optionally re-encrypting it), reading all plaintext data exchanged between the client and server without detection (Github Advisory, Netty Advisory).

Indicators of compromise

  • Network: Unexpected TLS certificate presented to a Netty client where the certificate's CN or SAN does not match the target hostname; TLS connections accepted despite certificate hostname mismatch (detectable via network monitoring or TLS inspection tools).
  • Network: Unusual intermediate hosts appearing in the network path between the Netty client and its upstream server (detectable via traceroute or network flow analysis).
  • Logs: Application logs showing successful TLS handshakes to servers with mismatched certificates (if application-level logging of certificate details is enabled).
  • Process/Application: Unexpected data exfiltration or anomalous outbound connections from services using Netty as a client library, particularly those configured with custom trust managers.

Mitigation and workarounds

Upgrade io.netty:netty-handler to version 4.1.135.Final or 4.2.15.Final, which patch this issue by correctly preserving endpoint identification when wrapping custom trust managers (Netty 4.1.135 Release, Netty 4.2.15 Release). If immediate patching is not possible, avoid using custom plain X509TrustManager implementations with SslContextBuilder.forClient().trustManager(); alternatively, implement explicit hostname verification logic within the custom trust manager itself. Red Hat has issued errata (RHSA-2026:26017, RHSA-2026:26018, RHSA-2026:26586) for affected Quarkus-based products (Red Hat CVE).

Community reactions

Red Hat tracked the vulnerability and issued multiple security errata for affected Quarkus products (Red Hat CVE). IBM published a security bulletin acknowledging that IBM Enterprise Build of Quarkus is affected (IBM Advisory). The fix was contributed by Netty maintainer normanmaurer and released as part of a large batch of security fixes in the June 2026 Netty releases, indicating coordinated disclosure across multiple CVEs (Netty 4.2.15 Release).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-54609HIGH8.6
  • JavaScript logoJavaScript
  • qti-neon
NoNoJul 28, 2026
CVE-2026-43910HIGH8.2
  • Java logoJava
  • io.appium:java-client
NoYesJul 28, 2026
CVE-2026-56822HIGH7.4
  • Java logoJava
  • cassandra-5.0
NoYesJul 29, 2026
CVE-2026-56821HIGH7.4
  • Java logoJava
  • apache-hop
NoYesJul 29, 2026
CVE-2026-59921MEDIUM5.7
  • Java logoJava
  • strimzi-kafka-operator-fips
NoYesJul 28, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management