CVE-2021-42135: Incorrect Privilege Assignment in HashiCorp Vault

github.com/hashicorp/vault Updated 02 Oct 2025

Summary

12/10/2021
No i
High
8.1

CVE-2021-42135: Incorrect Privilege Assignment in HashiCorp Vault. Affects github.com/hashicorp/vault versions >= 1.8.0, <= 1.8.4. No fix is published. How to fix ↓

Also tracked for

The same CVE-2021-42135 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

HashiCorp Vault is a popular open-source tool used for securely storing and accessing secrets, such as API keys, passwords, and certificates. It provides a centralized solution for managing secrets across different applications and environments. Vault is written in Go and is widely adopted in various industries. However, versions 1.8.x through 1.8.4 of HashiCorp Vault and Vault Enterprise have a vulnerability that can lead to incorrect privilege assignment.

Vulnerability Detail

The vulnerability in HashiCorp Vault arises from an unexpected interaction between glob-related policies and the Google Cloud secrets engine. In certain situations, users may have more privileges than intended. For example, a user with read permission for the /gcp/roleset/* path may be able to issue Google Cloud service account credentials. This can result in unauthorized access to sensitive resources and potential misuse of privileged actions. The vulnerability has a CVSS score of 8.1, indicating a high severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading to a non-affected version of HashiCorp Vault.

Conclusion

The vulnerability in HashiCorp Vault can result in incorrect privilege assignment and potential unauthorized access to sensitive resources. It is crucial to upgrade to a non-affected version of HashiCorp Vault to mitigate this risk. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for github.com/hashicorp/vault →

Share this vulnerability

FAQ

HashiCorp Vault is an open-source tool used for securely storing and accessing secrets.

The vulnerability can lead to incorrect privilege assignment, potentially allowing unauthorized access to sensitive resources.

You can use the Vulert playground at Vulert Scanner to check if your version of HashiCorp Vault is affected by this vulnerability.

No, there are no known workarounds for this vulnerability. It is crucial to upgrade to a non-affected version of HashiCorp Vault.

The CVSS score of this vulnerability is 8.1, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/hashicorp/vault.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback