CVE-2025-66220: Envoy’s TLS certificate matcher for `match_typed_subject_alt_names` may incorrectly treat certificates containing an embedded null byte

Published Dec 3, 2025
·
Updated

### Summary Envoy’s mTLS certificate matcher for `match_typed_subject_alt_names` may incorrectly treat certificates containing an embedded null byte (\0) inside an `OTHERNAME` SAN value as valid matches. ### Details This occurs when the SAN is encoded as a `BMPSTRING` or `UNIVERSALSTRING`, and its UTF-8 conversion result is truncated at the first null byte during string assignment. As a result, `"victim\0evil"` may match an exact: `"victim"` rule and be accepted by Envoy. ### PoC Create a CA and a server certificate signed by that CA. Create two client certificates signed by the same CA: client_evil with OTHERNAME BMPSTRING = "evil" client_null with OTHERNAME BMPSTRING = "victim\0evil" Configure Envoy with require_client_certificate: true and a match_typed_subject_alt_names entry for the OTHERNAME OID with matcher.exact: "victim". Connect without a client cert → connection rejected. Connect with client_evil → connection rejected. Connect with client_null → connection accepted (but shouldn't!). ### Impact An attacker who can obtain a trusted client certificate with a null byte embedded in an OTHERNAME SAN can exploit this vulnerability. The practical impact is unauthorized impersonation of the matched identity, enabling access to services or APIs protected by that exact OTHERNAME check. ### Credit [markevich.nikita1@gmail.com](mailto:markevich.nikita1@gmail.com)

Affected Software

9 affected componentsFixes available
Envoy Envoy Proxy<1.33.12, >=1.34.10<1.36.2
Envoyproxy Envoy<1.33.13
Envoyproxy Envoy>=1.34.0<1.34.11
Envoyproxy Envoy>=1.35.0<1.35.7
Envoyproxy Envoy>=1.36.0<1.36.3
go/github.com/envoyproxy/envoy<=1.33.12
1.33.13
go/github.com/envoyproxy/envoy>=1.34.0<=1.34.10
1.34.11
go/github.com/envoyproxy/envoy>=1.35.0<=1.35.6
1.35.7
go/github.com/envoyproxy/envoy>=1.36.0<=1.36.2
1.36.3

Event History

Dec 3, 2025
CVE Published
via MITRE·06:31 PM
Data Sourced
via MITRE·06:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Dec 5, 2025
Advisory Published
via GitHub·06:14 PM
Data Sourced
via GitHub·06:14 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-66220?

CVE-2025-66220 is classified as a high-severity vulnerability due to potential bypass of mTLS certificate validation.

2

How do I fix CVE-2025-66220?

To fix CVE-2025-66220, upgrade to Envoy versions 1.33.13, 1.34.11, 1.35.7, or 1.36.3 or later.

3

What software is affected by CVE-2025-66220?

CVE-2025-66220 affects Envoy Proxy versions up to 1.33.12 and from 1.34.10 to 1.36.2.

4

What type of vulnerability is CVE-2025-66220?

CVE-2025-66220 is a security vulnerability related to certificate validation in mTLS.

5

Is CVE-2025-66220 a practical risk?

Yes, CVE-2025-66220 poses a practical risk as it may allow attackers to use malformed certificates for authentication.

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