{"id":"CVE-2022-21656","published":"2022-02-22T22:25:11Z","modified":"2025-04-23T19:01:38Z","title":"X.509 subjectAltName matching bypass in Envoy","vendor":"envoyproxy","product":"envoy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00677,"percentile":0.53254,"provenance":"source"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"references":[{"url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-c9g7-xwcv-pjx2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/envoyproxy/envoy/commit/bb95af848c939cfe5b5ee33c5b1770558077e64e","tags":["x_refsource_MISC"]}],"priority":{"score":15.8,"factors":[{"name":"EPSS percentile","points":10.65},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"envoyproxy","affectedVersions":[{"vendor":"envoyproxy","product":"envoy","versions":["< 1.20.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:55:47.477332Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-26874","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-envoyproxy-envoy-cve-2022-21654","parents":[{"from":"CVE-2022-21654","to":"CVE-2022-21656","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["envoy/ssl/certificate_validation_context_config.h","source/extensions/transport_sockets/tls/cert_validator/default_validator.cc"],"commits":["https://github.com/envoyproxy/envoy/commit/e9f936d85dc1edc34fabd0a1725ec180f2316353","https://github.com/envoyproxy/envoy/commit/bb95af848c939cfe5b5ee33c5b1770558077e64e"],"basis":"rarely changed file"}]}]}}