CVE-2021-41802 Hashicorp Vault Privilege Escalation Vulnerability

Low 2.9 Published Updated

A user with write access to an entity alias can merge identities to acquire another user's policies, leading to privilege escalation.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-41802?

CVE-2021-41802 is a low-severity vulnerability in Hashicorp Vault, published on 8 Oct 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-732

Which versions are affected by CVE-2021-41802?

6 open source packages ship an affected version, including github.com/hashicorp/vault and vault. It affects 1 product.

PackageAffectedFixed in
github.com/hashicorp/vault GoAll versions1.7.5, 1.8.4
github.com/hashicorp/vault GoAll versions1.7.5
github.com/hashicorp/vault GoAll versions1.7.5
github.com/hashicorp/vault GoFrom 1.8.01.8.4
github.com/hashicorp/vault GoFrom 1.8.01.8.4
vault BitnamiAll versions1.7.5, 1.8.4

Products include Hashicorp Vault.

How do I fix CVE-2021-41802?

Upgrade github.com/hashicorp/vault to a fixed version for your release line: 1.7.5 or 1.8.4.

Is CVE-2021-41802 being exploited?

There is no known exploitation of CVE-2021-41802 in the wild and no public exploit code.

All Hashicorp Vault vulnerabilities

Sources

Also known as BIT-vault-2021-41802, GHSA-qv95-g3gm-x542, GO-2022-0618.

Is CVE-2021-41802 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free