SecurityContext

CVE-2022-21657: Envoy - TLS Certificate Validation Bypass

  • Cve: CVE-2022-21657
  • Name: Envoy - TLS Certificate Validation Bypass
  • 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.
  • Impact: Attackers can present non-SSL certificates, leading Envoy to trust malicious or unauthorized CAs, risking man-in-the-middle attacks or trust chain issues.
  • Remediation: Upgrade Envoy to the latest version where this issue is fixed.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: man_in_the_middle
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00522
  • Epss percentile: 0.45155
  • Assignee: [email protected]
  • Published at: 2022-02-22T23:15:11Z
  • Age in days: 1736
  • Modified at: 2026-06-17T04:26:41Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-21657
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-295Improper Certificate Validation

References

UrlSourceTags
https://github.com/envoyproxy/envoy/pull/630nvdPatch, Third Party Advisory
https://github.com/envoyproxy/envoy/security/advisories/GHSA-837m-wjrv-vm5gnvdIssue Tracking, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
envoyproxy:envoy>= 1.20.0, < 1.20.2; >= 1.19.0, < 1.19.3; < 1.18.6nonvd/v1/products/envoyproxy/envoy

Projects

RepositoryLink kindsIndexedUrl
envoyproxy/envoypull, security_advisoryyes/v1/repositories/envoyproxy/envoy

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 345830
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports