# CVE-2022-21656: X.509 subjectAltName matching bypass in Envoy

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Published: 2022-02-22T22:25:11.000Z
- Modified: 2026-09-10T16:01:31.586Z
- Also known as: BIT-ENVOY-2022-21656, GHSA-c9g7-xwcv-pjx2
- Weaknesses: CWE-295, CWE-843
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- envoyproxy envoy: < 1.20.2; before 1.20.2
- envoy (Bitnami): before 1.20.2

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## 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

- CVE List: [CVE-2022-21656](https://www.cve.org/CVERecord?id=CVE-2022-21656), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-21656](https://nvd.nist.gov/vuln/detail/CVE-2022-21656), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-ENVOY-2022-21656](https://osv.dev/vulnerability/BIT-ENVOY-2022-21656), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2022-21656 · Whole record: https://cve.day/CVE-2022-21656.json · Rebuilt by cve.day 2026-11-25T22:58:09.793Z
