CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-50010

CVE-2026-50010: Hostname Verification Bypass in Netty TLS Client

Amit Schendel
Amit Schendel
Senior Security Researcher

Jun 15, 2026·8 min read·155 visits

Executive Summary (TL;DR)

Netty silently bypasses TLS hostname verification when custom plain X509TrustManagers are used, exposing clients to unauthenticated Man-in-the-Middle (MitM) traffic interception.

A critical hostname verification bypass vulnerability exists in the Netty network application framework when configured as a TLS client. When a developer registers a custom plain X509TrustManager, Netty wraps it inside an X509TrustManagerWrapper to adapt it to the X509ExtendedTrustManager API. However, this wrapper discards the SSLEngine context, bypassing critical hostname checks. Because the wrapper is identified as an X509ExtendedTrustManager, standard cryptographic engines and Netty's OpenSSL wrappers do not re-wrap it, failing to execute any hostname validation. Consequently, clients silently accept certificates for any host, enabling unauthenticated Man-in-the-Middle (MitM) attacks.

Vulnerability Overview

CVE-2026-50010 defines a critical architectural flaw within the Netty asynchronous networking framework, specifically affecting its secure socket layer (SSL/TLS) setup code. In Java applications, the standard Java Secure Socket Extension (JSSE) provides APIs to establish TLS client contexts. To facilitate custom trust verification, developers often pass custom trust managers implementing the standard javax.net.ssl.X509TrustManager interface to Netty's SslContextBuilder builder mechanism.

Netty handles plain trust managers by wrapping them inside an adapter class, X509TrustManagerWrapper, which extends Java's modern javax.net.ssl.X509ExtendedTrustManager. This inheritance is intended to make the wrapper compatible with newer JSSE methods. However, the adapter implementation introduces a severe logic flaw: it silently discards the contextual connection parameters required for endpoint verification.

The vulnerability resides within the netty-handler component and manifests during client-side TLS handshake execution. Because the adapter masquerades as a full X509ExtendedTrustManager, runtime environments assume that it natively executes modern verification routines. This false assumption leads both standard Java providers (SunJSSE) and native Netty wrappers (such as OpenSslX509TrustManagerWrapper) to skip additional safety wrapping steps, leaving the application entirely vulnerable to identity spoofing.

Root Cause Analysis

The root cause of CVE-2026-50010 lies in the behavioral divergence between the legacy X509TrustManager and the modern X509ExtendedTrustManager. When a client initiates a TLS connection, verifying the trust chain represents only the first phase of identity assurance. The second, equally critical phase is endpoint identification (hostname verification). Hostname verification ensures that the identity declared in the certificate's Common Name (CN) or Subject Alternative Name (SAN) matches the destination host.

In standard JSSE, a plain X509TrustManager lacks access to the active connection's socket or cryptographic engine, meaning it cannot inspect the target hostname. To resolve this, JSSE implementations automatically wrap plain managers using an internal wrapper, which intercepts the handshake context and performs endpoint identification independently. Netty utilizes a similar pattern when building its custom OpenSSL-backed engines, relying on OpenSslX509TrustManagerWrapper to inject verification logic.

When Netty's SimpleTrustManagerFactory processes a plain X509TrustManager, it wraps the object in its own X509TrustManagerWrapper. Because this class extends X509ExtendedTrustManager, Java's internal type checks (e.g., trustManager instanceof X509ExtendedTrustManager) evaluate to true. This type assessment signals to the underlying JSSE engine and Netty's OpenSSL wrapper that no further adaptation is needed. The engine assumes the wrapper will handle connection-aware checks.

Crucially, Netty's X509TrustManagerWrapper does not implement connection-aware checks. The wrapper overrides the 3-argument method checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) and the alternative socket-based method, but instead of analyzing the SSLEngine or Socket object to extract and verify the destination hostname, it discards these arguments entirely. The wrapper then invokes the legacy 2-argument checkServerTrusted(chain, authType) method of the wrapped plain delegate. As a result, the hostname is never checked, allowing any validly signed certificate to be accepted for any domain.

Code-Level Analysis and Patch Review

To understand the structural failure, we analyze the implementation of the vulnerable wrapping logic within the Netty source tree. The class X509TrustManagerWrapper was designed to subclass X509ExtendedTrustManager to bridge legacy code to modern API expectations.

Below is the conceptual representation of the vulnerable adapter class structure:

package io.netty.handler.ssl;
 
import javax.net.ssl.X509ExtendedTrustManager;
import javax.net.ssl.X509TrustManager;
import javax.net.ssl.SSLEngine;
import java.net.Socket;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
 
final class X509TrustManagerWrapper extends X509ExtendedTrustManager {
    private final X509TrustManager delegate;
 
    X509TrustManagerWrapper(X509TrustManager delegate) {
        this.delegate = delegate;
    }
 
    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
        delegate.checkClientTrusted(chain, authType);
    }
 
    @Override
    public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
        delegate.checkServerTrusted(chain, authType);
    }
 
    // Vulnerable delegation: Discards Socket and fails to verify hostname
    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException {
        delegate.checkClientTrusted(chain, authType);
    }
 
    @Override
    public void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException {
        delegate.checkServerTrusted(chain, authType);
    }
 
    // Vulnerable delegation: Discards SSLEngine and fails to verify hostname
    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException {
        delegate.checkClientTrusted(chain, authType);
    }
 
    @Override
    public void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException {
        // SSLEngine context is lost here
        delegate.checkServerTrusted(chain, authType);
    }
 
    @Override
    public X509Certificate[] getAcceptedIssuers() {
        return delegate.getAcceptedIssuers();
    } 
}

The remediation requires Netty to avoid bypassing JSSE's built-in fallback wrappers. In the patched versions (4.1.135.Final and 4.2.15.Final), the framework refactored how plain trust managers are integrated. Instead of wrapping plain trust managers in a class that claims to be an X509ExtendedTrustManager but lacks its capabilities, Netty either preserves the plain type so that JSSE's native wrapping engine performs the hostname checks, or ensures that hostname validation is explicitly performed within the wrapper itself by retrieving the SSL session parameters and verifying the endpoint.

// Patched wrapper approach to enforce hostname check if we must wrap
@Override
public void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException {
    // 1. Delegate basic cryptographic validation to the plain trust manager
    delegate.checkServerTrusted(chain, authType);
 
    // 2. Explicitly perform endpoint identification since JSSE wrapper was bypassed
    if (engine != null) {
        String endpointAlgo = engine.getSSLParameters().getEndpointIdentificationAlgorithm();
        if ("HTTPS".equalsIgnoreCase(endpointAlgo)) {
            // Retrieve hostname and invoke standard verification routine
            String peerHost = engine.getPeerHost();
            // Validate the certificate chain against the peerHost
            SslUtils.verifyHostname(peerHost, chain[0]);
        } 
    }
}

The patch guarantees that when a client is configured with a plain trust manager, host verification is actively executed, mitigating the silent security degradation.

Exploitation and Attack Vectors

An attacker must establish an Adversary-in-the-Middle (AiTM) posture on the network path between the client application and the destination server to exploit this vulnerability. The attack requires no specialized conditions, authentication, or privileged access to either endpoint.

The typical attack execution follows these sequential phases:

  1. Traffic Interception: The attacker leverages standard local-network or routing-level redirection techniques. These include ARP poisoning on a local area network, DNS hijacking, or the configuration of a rogue wireless access point.

  2. Handshake Spoofing: When the Netty client attempts to establish a TLS connection to https://target-service.com, the attacker intercepts the TCP connection and responds as the server. The attacker presents an X.509 certificate issued by a globally trusted Certificate Authority (such as Let's Encrypt) for an unrelated domain under the attacker's control (e.g., attacker-domain.com).

  3. Validation Bypass:

  • The client-side Netty framework processes the received certificate.
  • The custom X509TrustManager delegate verifies that the certificate chain is cryptographically valid and signed by a trusted root CA.
  • Because the wrapper bypassed JSSE and OpenSSL hostname verification mechanisms, the client fails to compare the hostname of the requested destination (target-service.com) against the identities present in the certificate (attacker-domain.com).
  • The handshake completes successfully.
  1. Information Disclosure: The client transmits application payloads—including authentication tokens, session cookies, database credentials, or proprietary business data—over the encrypted channel. The attacker's proxy terminates the TLS connection, decrypts the inbound payloads, logs the sensitive data, and optionally forwards the modified traffic to the legitimate server to maintain persistence.

Security Impact Assessment

The security impact of CVE-2026-50010 is classified as high, achieving a CVSS v3.1 base score of 7.5. The compromised security control is confidentiality. Because the TLS tunnel's integrity relies entirely on the verification of the peer's identity, bypassing hostname validation completely undermines the transport-layer security model.

An attacker executing a successful Man-in-the-Middle attack gains access to all plain-text data transmitted by the client. In microservice architectures where Netty-based clients communicate with internal APIs or identity providers, this vulnerability can expose internal authentication headers, OAuth tokens, and system secrets. Furthermore, because Netty is a core dependency of many popular Java frameworks (e.g., Spring Boot's WebClient, gRPC-Java, and various cloud-native gateways), the vulnerability's impact propagates widely across downstream enterprise ecosystems.

Although the official CVSS vector indicates no direct impact on integrity (I:N) or availability (A:N), a practical network adversary capable of decrypting TLS traffic can often inject or modify payloads before re-encrypting them for transmission to the real destination. This downstream capability elevates the realistic operational threat, potentially allowing unauthorized command execution or transactional fraud depending on the application context.

Remediation and Mitigation Strategies

The primary and recommended resolution for CVE-2026-50010 is to upgrade the Netty library to a patched release. All applications using the Netty 4.1 branch must migrate to version 4.1.135.Final or newer. Applications built on the Netty 4.2 branch must migrate to version 4.2.15.Final or newer.

When immediate dependency upgrades are not feasible due to release cycles or legacy system constraints, organizations should apply the following code-level workarounds:

  1. Avoid Plain Trust Managers: Do not register standard javax.net.ssl.X509TrustManager instances directly with the SslContextBuilder. Instead, implement custom validation logic by subclassing javax.net.ssl.X509ExtendedTrustManager directly. This native extended trust manager must explicitly implement the 3-argument checkServerTrusted method and perform hostname validation internally.

  2. Explicit Verification Post-Handshake: If wrapping is unavoidable, developers can inject a custom ChannelHandler into the Netty pipeline immediately following the SslHandler. This handler should intercept the SslHandshakeCompletionEvent and programmatically verify that the peer certificate matches the target hostname before allowing any application data to flow.

  3. Network Isolation: As an administrative control, ensure that systems running vulnerable clients operate within isolated, strictly controlled network segments. Employ IPsec tunnels, TLS-terminating proxies with independent verification, or service mesh configurations (such as Istio or Linkerd) to wrap client traffic in a verified outer layer of mutual TLS (mTLS).

Official Patches

Netty ProjectSecurity advisory and patch notes for CVE-2026-50010

Technical Appendix

CVSS Score
7.5/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Probability
0.20%
Top 91% most exploited

Affected Systems

Netty Client ConfigurationsJava Applications using Netty-Handler with custom trust managers

Affected Versions Detail

Product
Affected Versions
Fixed Version
netty-handler
Netty Project
< 4.1.135.Final4.1.135.Final
netty-handler
Netty Project
>= 4.2.0.Final, < 4.2.15.Final4.2.15.Final
AttributeDetail
CWE IDCWE-347 (Improper Verification of Cryptographic Signature)
Attack VectorNetwork (AV:N)
Attack ComplexityLow (AC:L)
CVSS v3.1 Score7.5 (High)
EPSS Score0.00196 (0.20% probability of exploit in next 30 days)
Exploit StatusNone / Unweaponized
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1553Subvert Trust Controls
Defense Evasion
T1557Adversary-in-the-Middle
Credential Access
CWE-347
Improper Verification of Cryptographic Signature

The software does not verify or incorrectly verifies the cryptographic signature of received data, preventing verification of its authenticity and origin.

Vulnerability Timeline

Official security advisory (GHSA-c653-97m9-rcg9) published by Netty Project.
2026-06-12
CVE-2026-50010 assigned and cataloged in the CVE.org registry.
2026-06-12
Netty versions 4.1.135.Final and 4.2.15.Final released containing the security patches.
2026-06-12
NVD record modified and analyzed for risk metrics.
2026-06-15

References & Sources

  • [1]Official Netty Security Advisory (GHSA-c653-97m9-rcg9)
  • [2]Netty 4.1.135.Final Release Notes
  • [3]Netty 4.2.15.Final Release Notes
  • [4]CVE.org Record
  • [5]Wiz Vulnerability Database Analysis

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•1 day ago•CVE-2026-16454
4.3

CVE-2026-16454: Object-Level Authorization Bypass in Eclipse hawkBit Direct Device Integration Controller

CVE-2026-16454 is an object-level authorization bypass vulnerability (CWE-284, CWE-862) in Eclipse hawkBit versions 1.0.3 and prior. The flaw exists within the Direct Device Integration (DDI) REST controller (hawkbit-ddi-resource), where endpoints responsible for enumerating software module metadata and serving firmware binaries fail to verify whether the requested software module is assigned to the authenticated device. Consequently, any device with valid credentials (such as a TargetToken or GatewayToken) can enumerate software module identifiers and download arbitrary firmware artifacts across the entire tenant namespace.

Amit Schendel
Amit Schendel
10 views•9 min read
•2 days ago•CVE-2026-62284
8.6

CVE-2026-62284: Remote Code Execution and SSRF via Unsanitized Kubeconfig in OSAC Operator

CVE-2026-62284 (GHSA-5w5g-j6hw-6p8f) is a code injection and server-side request forgery vulnerability in the console-proxy component of the OSAC Operator. The RemoteConfigResolver parses Kubernetes Secrets containing kubeconfig files via clientcmd.RESTConfigFromKubeConfig without sanitizing execution-related fields. An attacker with RBAC permissions to create or modify labeled Secrets in monitored namespaces can supply a malicious exec credential plugin, resulting in arbitrary command execution within the console-proxy pod.

Amit Schendel
Amit Schendel
8 views•8 min read
•2 days ago•CVE-2026-62361
5.5

CVE-2026-62361: Authenticated SQL Injection and Table Access Control Bypass in Listmonk Subscriber Export

CVE-2026-62361 (GHSA-xgjr-7j9q-2h4r) is an authenticated SQL injection and authorization bypass vulnerability in listmonk, an open-source, self-hosted newsletter and mailing list manager written in Go. In versions prior to 6.2.0, the subscriber export endpoint (GET /api/subscribers/export) directly interpolates user-supplied SQL filter expressions into a PostgreSQL query without invoking the table allowlist validation function (validateQueryTables). Consequently, authenticated users possessing the subscribers:sql_query and subscribers:get_all permissions can bypass relational access controls, execute arbitrary subqueries against restricted tables such as users and settings, and modify database state via writable Common Table Expressions (CTEs).

Alon Barad
Alon Barad
9 views•11 min read
•2 days ago•CVE-2026-28385
5.0

CVE-2026-28385: Server-Side Request Forgery in Canonical LXD Image Import

CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.

Amit Schendel
Amit Schendel
10 views•9 min read
•2 days ago•GHSA-9J25-MM2H-2F76
9.9

CVE-2026-48750: Arbitrary File Write on Host via exec-output Symlink in Canonical LXD and Incus

Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.

Alon Barad
Alon Barad
8 views•12 min read
•2 days ago•GHSA-VGHH-5RFX-XHQ8
9.9

CVE-2026-48749: Arbitrary Host File Read and Write via Malicious Image Symlink in Canonical LXD and Incus

CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.

Amit Schendel
Amit Schendel
8 views•9 min read