CVE-2022-21656
JSON

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 packageVersionsReported by
envoyproxy envoy< 1.20.2, before 1.20.2CVE List, NVD
envoy (Bitnami)before 1.20.2Bitnami Vulnerability Database

All scores

GitHub_M7.4high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD5.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-295CWE-843

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

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

Sources

SourceRecordLicence
CVE ListCVE-2022-21656 changed 2025-04-23CVE Terms of Use
NVDCVE-2022-21656 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-ENVOY-2022-21656 changed 2026-09-10Apache-2.0