CVE-2021-41802
MEDIUM 5.4CVSS 3.1Hashicorp Vault Privilege Escalation Vulnerability
HashiCorp Vault and Vault Enterprise through 1.7.4 and 1.8.3 allowed a user with write permission to an entity alias ID sharing a mount accessor with another user to acquire this other user’s policies by merging their identities. Fixed in Vault and Vault Enterprise 1.7.5 and 1.8.4.
- Published
- 8 Oct 2021
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-269CWE-732
- Also known as
- BIT-vault-2021-41802GHSA-qv95-g3gm-x542GO-2022-0618
- Sources
- NVDJSONOSV GHSA-qv95-g3gm-x542JSONOSV GO-2022-0618JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | LOW 2.9 | CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 2.9 | CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:C/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.5 | AV:N/AC:L/Au:S/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
< 1.7.5 | 1.7.5 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
< 1.7.5 | 1.7.5 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
>= 1.8.0, < 1.8.4 | 1.8.4 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 1.8.0, < 1.8.4 | 1.8.4 |
| OSV | Go | github.com/hashicorp/vault | < 1.7.5 | 1.7.5 |
| OSV | Go | github.com/hashicorp/vault | >= 1.8.0, < 1.8.4 | 1.8.4 |
| OSV | Go | github.com/hashicorp/vault | < 1.7.5; >= 1.8.0, < 1.8.4 | 1.7.5, 1.8.4 |
References
- https://discuss.hashicorp.com/t/hcsec-2021-27-vault-merging-multiple-entity-aliases-for-the-same-mount-may-allow-privilege-escalation/ · Vendor Advisory, WEB
- https://security.gentoo.org/glsa/202207-01 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-41802 · ADVISORY
- https://github.com/hashicorp/vault · PACKAGE
- https://github.com/advisories/GHSA-qv95-g3gm-x542 · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Oct 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Oct 2021)