cve.bz

CVE-2021-42135 hashicorp vault: Improper Privilege Management

8.1 highEPSS 0.8%Fix available

High (8.1) in hashicorp vault. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/hashicorp/vault 1.8.5.

On this page
HashiCorp Vault and Vault Enterprise 1.8.x through 1.8.4 may have an unexpected interaction between glob-related policies and the Google Cloud secrets engine. Users may, in some situations, have more privileges than intended, e.g., a user with read permission for the /gcp/roleset/* path may be able to issue Google Cloud service account credentials.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-269 Improper Privilege Management
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-42135 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-42135?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-42135?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-42135 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
hashicorp:vaultfrom 1.8.0 through 1.8.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-362v-wg5p-64w2Gogithub.com/hashicorp/vault>=1.8.0 <=1.8.4no fix published
GO-2022-0578Gogithub.com/hashicorp/vault>=1.8.0 <1.8.51.8.5

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is related to the Vault’s Google Cloud secrets engine documentation update. The Vault operators using the Google Cloud secrets engine should review their Vault policies to ensure they meet their requirements and adhere to the principle of least privilege. More can be found in the official HashiCorp article for this vulnerability:

https://discuss.hashicorp.com/t/hcsec-2021-28-vaults-google-cloud-secrets-engine-policies-with-globs-may-provide-additional-privileges-in-vault-1-8-0-onwards/30422

Due to the nature of this vulnerability Red Hat components that use Vault are set as "Not affected".

ProductPackageStateAdvisory
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-installerNot affected
Red Hat OpenShift Container Platform 4openshift4/topology-aware-lifecycle-manager-rhel8-operatorNot affected
Red Hat Openshift Container Storage 4ocs4/cephcsi-rhel8Not affected
Red Hat Openshift Container Storage 4ocs4/mcg-rhel8-operatorNot affected
Red Hat Openshift Container Storage 4ocs4/ocs-rhel8-operatorNot affected
Red Hat Openshift Container Storage 4ocs4/rook-ceph-rhel8-operatorNot affected
Red Hat Openshift Data Foundation 4odf4/cephcsi-rhel9Not affected
Red Hat Openshift Data Foundation 4odf4/mcg-rhel8-operatorNot affected
Red Hat Openshift Data Foundation 4odf4/ocs-rhel8-operatorNot affected
Red Hat Openshift Data Foundation 4odf4/odf-multicluster-rhel9-operatorNot affected
Red Hat Openshift Data Foundation 4odf4/odf-rhel8-operatorNot affected
Red Hat Openshift Data Foundation 4odf4/odr-rhel8-operatorNot affected
Red Hat Openshift Data Foundation 4odf4/rook-ceph-rhel8-operatorNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-42135.

Attack patterns (CAPEC)

  • CAPEC-58 Restful Privilege Elevation Likelihood: High · Severity: High
  • CAPEC-122 Privilege Abuse Likelihood: High · Severity: Medium
  • CAPEC-233 Privilege Escalation

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON