CVE-2026-66392: Apache bRPC: TLS Client Accepts Certificates for Mismatched Peer Names

Published Oct 21, 2026
·
Updated

Apache bRPC versions before 1.18.0 validate the server certificate chain when client TLS peer verification is enabled, but do not bind the certificate to an expected DNS name or IP address. A network attacker who can redirect or intercept a connection and who possesses a certificate issued by a CA trusted by the client for another name may impersonate the requested TLS endpoint.

Affected Scenarios: Applications use a bRPC client Channel to connect to an untrusted network with certificate verification enabled and trust a CA that can issue certificates for identities other than the intended endpoint.

How to Fix: Upgrade to Apache bRPC 1.18.0 and enable VERIFYPEER with a positive verifydepth. HTTPS Channels automatically verify the certificate against the host in the Channel URL. Callers may set VerifyOptions::expectedpeername explicitly when the certificate identity differs from the URL host. Alternatively, apply the patch from https://github.com/apache/brpc/pull/3408 .

Note: The new option performs DNS SAN or IP SAN verification during the TLS handshake. Configurations that set expectedpeername while peer verification is disabled are rejected.

Affected Software

1 affected component
Apache bRPC<1.18.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache bRPC to a version that resolves this vulnerability.

    Fixed in 1.18.0
  2. Configuration

    Enable VERIFY_PEER and configure verify_depth to a positive value.

    Apache bRPC TLS client VERIFY_PEER and verify_depth = VERIFY_PEER enabled with a positive verify_depth

Event History

Oct 21, 2026
CVE Published
via MITRE·11:43 AM
Data Sourced
via MITRE·11:43 AM
DescriptionWeakness
Data Sourced
via NVD·12:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to certificate impersonation?

Affected deployments use a bRPC client Channel over an untrusted network with TLS peer verification enabled, while trusting a CA that can issue certificates for names other than the intended endpoint. HTTPS Channels are relevant when running a version before 1.18.0.

2

What must an attacker be able to do?

The attacker must be able to redirect or intercept the client connection and have a certificate for a different name that chains to a CA trusted by the client. The vulnerable validation accepts the trusted chain without confirming that the certificate DNS or IP identity matches the endpoint.

3

What can be done before upgrading?

Apply the referenced patch, or explicitly set VerifyOptions::expected_peer_name when the certificate identity differs from the URL host. Enable VERIFY_PEER with a positive verify_depth; configurations that set expected_peer_name while peer verification is disabled are rejected.

4

How does the corrected behavior validate endpoint identity?

The new expected-peer-name option performs DNS SAN or IP SAN verification during the TLS handshake. HTTPS Channels automatically check the certificate against the host in the Channel URL.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203