# CVE-2021-41802: Hashicorp Vault Privilege Escalation Vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.9
- **CVSS:** 2.9 (v3.1, CNA) `CVSS:3.1/AC:L/AV:A/A:N/C:L/I:N/PR:H/S:C/UI:R`
- **CVSS metrics:** Attack complexity: Low; Attack vector: Adjacent network; Availability impact: None; Confidentiality impact: Low; Integrity impact: None; Privileges required: High; Scope: Changed (impact reaches other components); User interaction: Required
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.61% (percentile 43, 2026-11-26)
- **CWE:** CWE-732
- **Aliases:** BIT-vault-2021-41802, GHSA-qv95-g3gm-x542, GO-2022-0618
- **Published:** 2021-10-08T17:00:01.000Z
- **Modified:** 2026-09-10T03:49:09.473Z

## Who should check

- Projects that depend on Go package github.com/hashicorp/vault (\< 1.7.5)
- Anyone running n/a (versions: see the vendor advisory)

## Description

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.

## Affected and fixed versions

- Go `github.com/hashicorp/vault`: affected \< 1.7.5; fixed 1.7.5, 1.8.4 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade github.com/hashicorp/vault to one of 1.7.5, 1.8.4 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-41802. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-41802.md
Affected: github.com/hashicorp/vault < 1.7.5
Fixed in: 1.7.5, 1.8.4

Steps:
1. Search this machine and project for github.com/hashicorp/vault (Go), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-41802 being exploited?

There is no confirmed exploitation: CVE-2021-41802 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-41802?

Low: CVSS 2.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2021-41802?

github.com/hashicorp/vault \< 1.7.5.

### Is there a fix for CVE-2021-41802?

Yes. Fixed in 1.7.5, 1.8.4. Upgrade github.com/hashicorp/vault to one of 1.7.5, 1.8.4 (or later in the same release line).

### How do I check if I'm affected by CVE-2021-41802?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://discuss.hashicorp.com/t/hcsec-2021-27-vault-merging-multiple-entity-aliases-for-the-same-mount-may-allow-privilege-escalation/>
- vendor: <https://security.gentoo.org/glsa/202207-01>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-41802>
- vendor: <https://github.com/advisories/GHSA-qv95-g3gm-x542>
- other: <https://discuss.hashicorp.com/t/hcsec-2021-27-vault-merging-multiple-entity-aliases-for-the-same-mount-may-allow-privilege-escalation>
- other: <https://github.com/hashicorp/vault>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-41802>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-qv95-g3gm-x542> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2022-0618> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-41802> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-41802>
