A flaw was found in github.com/hashicorp/vault. The LDAP authentication method fails to properly enforce multi-factor authentication when username_as_alias is enabled and a user possesses multiple Common Names (CNs) containing differing leading or trailing spaces. A remote attacker authenticated as a user meeting these conditions can bypass MFA. This can allow unauthorized access to resources protected by Vault. The underlying issue is an incorrect comparison of Common Names.
Exploitability
AV:NAC:LPR:HUI:NScope
S:UImpact
C:HI:HA:N6.5/CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N