CVE-2021-42135
HashiCorp Vault vulnerability analysis and mitigation

Overview

HashiCorp Vault and Vault Enterprise versions 1.8.x through 1.8.4 contain a vulnerability in the Google Cloud secrets engine where users may have more privileges than intended under specific conditions. The vulnerability (CVE-2021-42135) was discovered and reported by an external party and disclosed on October 7, 2021. The issue specifically affects the interaction between glob-related policies and the Google Cloud secrets engine (HashiCorp Advisory, NVD).

Technical details

The vulnerability stems from changes in the underlying functionality of the Google Cloud secrets engine introduced in version 1.8.0. The issue specifically affects policies that use globs () in their configuration. For example, a user with read permission for the /gcp/roleset/ path may be able to issue Google Cloud service account credentials, which was not intended in the original security model. The vulnerability has been assigned a CVSS v3.1 base score of 8.1 (HIGH) with the vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N (NVD).

Impact

The vulnerability could allow users to gain additional privileges beyond their intended access levels when using the Google Cloud secrets engine. Specifically, users with policies containing glob (*) patterns could potentially access and issue Google Cloud service account credentials that should have been restricted (HashiCorp Advisory).

Mitigation and workarounds

HashiCorp has updated the Vault's Google Cloud secrets engine documentation to provide additional guidance regarding roleset-related policy definition. Organizations should review their Vault policies, particularly those running Vault 1.8.0 and above, to ensure they meet requirements and adhere to the principle of least privilege. Special attention should be paid to policies with endpoints and glob usage, and consideration should be given to moving to more specific wildcards (HashiCorp Advisory).

Additional resources


SourceThis report was generated using AI

Related HashiCorp Vault vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61729HIGH7.5
  • cAdvisorcAdvisor
  • consul-k8s-fips-1.5
NoYesDec 02, 2025
CVE-2025-63811HIGH7.5
  • HashiCorp VaultHashiCorp Vault
  • vault-fips-1.21
NoYesNov 12, 2025
CVE-2025-61727MEDIUM6.5
  • cAdvisorcAdvisor
  • gitaly-fips-18.6
NoYesDec 03, 2025
CVE-2025-58181MEDIUM5.3
  • cAdvisorcAdvisor
  • kuma-2.11
NoYesNov 19, 2025
CVE-2025-47914MEDIUM5.3
  • cAdvisorcAdvisor
  • atlantis-fips
NoYesNov 19, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management