CVE-2022-21656 X.509 subjectAltName matching bypass in Envoy
Attackers can bypass certificate validation and impersonate arbitrary servers by exploiting a type confusion bug in Envoy's subjectAltName processing.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-21656?
CVE-2022-21656 is a high-severity vulnerability in Envoyproxy Envoy, published on 22 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2022-21656?
1 open source package ship an affected version, including envoy. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
envoy Bitnami | All versions | 1.20.2 |
Products include Envoyproxy Envoy.
How do I fix CVE-2022-21656?
Upgrade envoy to 1.20.2 or later.
Is CVE-2022-21656 being exploited?
There is no known exploitation of CVE-2022-21656 in the wild and no public exploit code.
Other vulnerabilities in Envoyproxy Envoy
Sources
Also known as BIT-envoy-2022-21656, GHSA-c9g7-xwcv-pjx2.