Skip to main content
Vulnerability Database/CVE-2026-105794

CVE-2026-105794: MsQuic Certificate Validation Vulnerability

CVE-2026-105794 is a certificate validation flaw in MsQuic that allows attackers to spoof servers via man-in-the-middle attacks. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-105794 Overview

MsQuic is a cross-platform C implementation of the IETF QUIC protocol, with bindings for C, C++, C#, and Rust. A certificate validation flaw affects MsQuic clients built against the OpenSSL or QuicTLS TLS backends. Prior to versions 2.4.20, 2.5.11, and 2.6.1, the client did not verify that the server certificate matched the intended target hostname. An on-path attacker can present any certificate chained to a trusted CA and successfully impersonate the intended server. The Schannel backend is not affected. The weakness is tracked under CWE-295: Improper Certificate Validation.

Critical Impact

On-path attackers can perform man-in-the-middle attacks against MsQuic clients using OpenSSL or QuicTLS, intercepting or modifying QUIC traffic transparently.

Affected Products

  • Microsoft MsQuic prior to 2.4.20 (2.4.x branch) using OpenSSL or QuicTLS
  • Microsoft MsQuic prior to 2.5.11 (2.5.x branch) using OpenSSL or QuicTLS
  • Microsoft MsQuic prior to 2.6.1 (2.6.x branch) using OpenSSL or QuicTLS

Discovery Timeline

  • 2026-10-06 - CVE-2026-105794 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-105794

Vulnerability Analysis

The vulnerability is a certificate validation failure in the MsQuic client handshake path when linked against OpenSSL or QuicTLS. TLS libraries typically perform chain validation automatically but require the application to supply the expected hostname for subject and Subject Alternative Name (SAN) matching. MsQuic failed to perform this binding when the application did not supply a Server Name Indication (SNI) value. As a result, any certificate validly signed by a trusted certificate authority was accepted, regardless of its subject.

The fix supplies the remote IP address as the validation target when no server name is provided by the caller. This forces the TLS stack to compare the certificate against a concrete identity rather than treating a missing hostname as a wildcard. The Schannel backend performs hostname binding internally and is not affected.

Root Cause

The root cause is improper certificate validation [CWE-295] in src/core/connection.c. When the application created a QUIC client connection without an explicit server name, MsQuic passed a NULL target identity to the OpenSSL/QuicTLS verification routines. OpenSSL's X509_VERIFY_PARAM_set1_host is only enforced when a host string is set, so a NULL value disabled name checking entirely.

Attack Vector

An attacker positioned on the network path between the MsQuic client and the legitimate server can respond to the QUIC Initial packet with their own server certificate. Any certificate issued by a CA in the client's trust store, including domain-validated certificates for attacker-controlled domains, will pass validation. The attacker then proxies or modifies QUIC application data, breaking the confidentiality and integrity guarantees of the connection.

c
// Patch excerpt from src/core/connection.c
// Supplies the remote IP as the validation target when no SNI is set
if (ServerName == NULL) {
    //
    // If a server name is not provided, use the IP address for
    // server certificate validation.
    //
    QUIC_ADDR_STR RemoteAddressString;
    if (!QuicAddrIpToString(&Path->Route.RemoteAddress, &RemoteAddressString)) {
        Status = QUIC_STATUS_INVALID_PARAMETER;
        QuicTraceEvent(
            ConnError,
            "[conn][%p] ERROR, %s.",
            Connection,
            "Failed to convert remote address to server name");
        goto Exit;
    }

    const size_t ServerNameLength = strlen(RemoteAddressString.Address);
    ServerName = CXPLAT_ALLOC_NONPAGED(ServerNameLength + 1, QUIC_POOL_SERVERNAME);
    if (ServerName == NULL) {
        Status = QUIC_STATUS_OUT_OF_MEMORY;
        goto Exit;
    }
    CxPlatCopyMemory((char*)ServerName, RemoteAddressString.Address, ServerNameLength + 1);
}

Source: Microsoft MsQuic Commit 508e811370

Detection Methods for CVE-2026-105794

Indicators of Compromise

  • QUIC sessions terminating at unexpected IP addresses or ASNs that do not match the application's intended backend.
  • Server certificates observed in QUIC handshakes whose Subject or SAN do not match the destination hostname or IP in use by the client.
  • Unexpected certificate issuer changes for applications that pin to a known CA or set of leaf certificates.

Detection Strategies

  • Inventory applications that embed MsQuic and identify the TLS backend they ship with (OpenSSL, QuicTLS, or Schannel).
  • Compare installed MsQuic versions against the fixed versions 2.4.20, 2.5.11, and 2.6.1 across all hosts and containers.
  • In lab environments, intercept client traffic with a proxy presenting a non-matching certificate signed by a trusted CA to confirm whether validation fails open.

Monitoring Recommendations

  • Log QUIC connection metadata including destination IP, SNI value, and certificate fingerprint for anomaly review.
  • Alert when client applications establish QUIC sessions without an SNI or to IP literals that previously required DNS resolution.
  • Correlate egress QUIC flows with authorized destination lists and surface deviations through your SIEM or data lake.

How to Mitigate CVE-2026-105794

Immediate Actions Required

  • Upgrade MsQuic to 2.4.20, 2.5.11, or 2.6.1 depending on the branch in use.
  • Rebuild and redistribute any downstream products, container images, or language bindings (C++, C#, Rust) that statically link or vendor MsQuic.
  • Where upgrade is not immediately possible, require applications to pass a non-NULL SNI value to MsQuic client APIs.

Patch Information

Microsoft released fixed versions on GitHub: MsQuic v2.4.20, MsQuic v2.5.11, and MsQuic v2.6.1. The upstream fix landed in pull request #6274 and was backported via #6275, #6276, and #6277. See the GHSA-w5f4-fx9m-m4q7 advisory for full details.

Workarounds

  • Build MsQuic against the Schannel backend on Windows, which performs hostname binding internally and is not affected.
  • Modify client applications to always supply an explicit ServerName to MsQuic->ConnectionStart() so that the TLS layer has an identity to validate against.
  • Restrict trusted certificate authorities for QUIC clients to a minimal set, or pin expected leaf certificates where supported.
bash
# Verify installed MsQuic version on Linux build hosts
dpkg -l | grep -i msquic
# or, for source builds
grep -R "MSQUIC_VERSION" /path/to/msquic/src/inc/

# Rebuild application against patched MsQuic
git clone --branch v2.6.1 https://github.com/microsoft/msquic.git
cd msquic
git submodule update --init --recursive
mkdir build && cd build
cmake -G 'Unix Makefiles' -DQUIC_TLS=openssl ..
cmake --build .

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.