# CVE-2022-21657: X.509 Extended Key Usage and Trust Purposes bypass in Envoy

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/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.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2022-02-22T22:30:12.000Z
- Modified: 2026-09-08T08:47:26.502Z
- Also known as: BIT-ENVOY-2022-21657, GHSA-837m-wjrv-vm5g
- Weaknesses: CWE-295
- 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. In affected versions Envoy does not restrict the set of certificates it accepts from the peer, either as a TLS client or a TLS server, to only those certificates that contain the necessary extendedKeyUsage (id-kp-serverAuth and id-kp-clientAuth, respectively). This means that a peer may present an e-mail certificate (e.g. id-kp-emailProtection), either as a leaf certificate or as a CA in the chain, and it will be accepted for TLS. This is particularly bad when combined with the issue described in pull request #630, in that it allows a Web PKI CA that is intended only for use with S/MIME, and thus exempted from audit or supervision, to issue TLS certificates that will be accepted by Envoy. As a result Envoy will trust upstream certificates that should not be trusted. There are no known workarounds to this issue. Users are advised to upgrade.

(As written by CVE List.)

## Affected

- envoyproxy envoy: >= 1.20.0, < 1.20.2; >= 1.19.0, < 1.19.3; < 1.18.6; before 1.18.6; from 1.19.0 before 1.19.3; from 1.20.0 before 1.20.2
- envoy (Bitnami): before 1.18.6; from 1.19.0 before 1.19.3; from 1.20.0 before 1.20.2

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/envoyproxy/envoy/security/advisories/GHSA-837m-wjrv-vm5g> (advisory, issue-tracking, third-party-advisory)
- <https://github.com/envoyproxy/envoy/pull/630> (advisory, patch, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21657> (web)

## Sources

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

---

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