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

High 7.4 Published Updated

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.

Weakness: CWE-843, CWE-295

Which versions are affected by CVE-2022-21656?

1 open source package ship an affected version, including envoy. It affects 1 product.

PackageAffectedFixed in
envoy BitnamiAll versions1.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.

All Envoyproxy Envoy vulnerabilities

Sources

Also known as BIT-envoy-2022-21656, GHSA-c9g7-xwcv-pjx2.

Is CVE-2022-21656 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free