7.4high
X.509 subjectAltName matching bypass in Envoy
- Severity
- 7.4high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.60% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-ENVOY-2022-21656GHSA-c9g7-xwcv-pjx2
Description
Envoy is an open source edge and service proxy, designed for cloud-native applications. The default_validator.cc implementation used to implement the default certificate validation routines has a "type confusion" bug when processing subjectAltNames. This processing allows, for example, an rfc822Name or uniformResourceIndicator to be authenticated as a domain name. This confusion allows for the bypassing of nameConstraints, as processed by the underlying OpenSSL/BoringSSL implementation, exposing the possibility of impersonation of arbitrary servers. As a result Envoy will trust upstream certificates that should not be trusted.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| envoyproxy envoy | < 1.20.2, before 1.20.2 | CVE List, NVD |
| envoy (Bitnami) | before 1.20.2 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 5.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Envoy is an open source edge and service proxy, designed for cloud-native applications. The default_validator.cc implementation used to implement the default certificate validation routines has a "type confusion" bug when processing subjectAltNames. This processing allows, for example, an rfc822Name or uniformResourceIndicator to be authenticated as a domain name. This confusion allows for the bypassing of nameConstraints, as processed by the underlying OpenSSL/BoringSSL implementation, exposing the possibility of impersonation of arbitrary servers. As a result Envoy will trust upstream certificates that should not be trusted.
NVD (es)
Envoy es un proxy de borde y servicio de código abierto, diseñado para aplicaciones nativas de la nube. La implementación default_validator.cc usada para implementar las rutinas de comprobación de certificados por defecto presenta un error de "confusión de tipo" cuando procesa subjectAltNames. Este procesamiento permite, por ejemplo, que un rfc822Name o uniformResourceIndicator sea autenticado como un nombre de dominio. Esta confusión permite omitir nameConstraints, tal y como lo procesa la implementación subyacente de OpenSSL/BoringSSL, exponiendo la posibilidad de suplantación de servidores arbitrarios. Como resultado, Envoy confiará en certificados de origen que no deberían ser confiables
References
| https://github.com/envoyproxy/envoy/security/advisories/GHSA-c9g7-xwcv-pjx2 | advisory, issue-tracking, third-party-advisory | |
| https://github.com/envoyproxy/envoy/commit/bb95af848c939cfe5b5ee33c5b1770558077e64e | advisory, patch, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-21656 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-21656 changed 2025-04-23 | CVE Terms of Use |
| NVD | CVE-2022-21656 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-ENVOY-2022-21656 changed 2026-09-10 | Apache-2.0 |