Bug 2057271 (CVE-2022-21656) - CVE-2022-21656 envoy: X.509 subjectAltName matching (and nameConstraints) bypass
Summary: CVE-2022-21656 envoy: X.509 subjectAltName matching (and nameConstraints) bypass
Keywords:
Status: NEW
Alias: CVE-2022-21656
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2050760
TreeView+ depends on / blocked
 
Reported: 2022-02-23 06:25 UTC by Avinash Hanwate
Modified: 2023-09-01 03:02 UTC (History)
4 users (show)

Fixed In Version: envoy 1.20.2
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in envoy. The default_validator.cc implementation used to implement the default certificate validation routines has a "type confusion" bug when processing subjectAltNames.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Avinash Hanwate 2022-02-23 06:25:19 UTC
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.

https://github.com/envoyproxy/envoy/commit/bb95af848c939cfe5b5ee33c5b1770558077e64e
https://github.com/envoyproxy/envoy/security/advisories/GHSA-c9g7-xwcv-pjx2


Note You need to log in before you can comment on or make changes to this bug.