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

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2021-10-11T02:52:59.000Z
- Modified: 2026-09-08T08:48:21.216Z
- Also known as: GHSA-362v-wg5p-64w2, BIT-VAULT-2021-42135, GO-2022-0578
- Weaknesses: CWE-266, CWE-269, CWE-863
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/hashicorp/vault (Go): from 1.8.0 up to 1.8.4; from 1.8.0 before 1.8.5
- hashicorp vault: from 1.8.0 up to 1.8.4
- vault (Bitnami): from 1.8.0 before 1.8.5

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 4.9 Medium `AV:N/AC:M/Au:S/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <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/> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42135> (advisory, web)
- <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> (web)
- <https://github.com/hashicorp/vault> (package)
- <https://github.com/hashicorp/vault/blob/main/CHANGELOG.md#180> (web)
- <https://github.com/advisories/GHSA-362v-wg5p-64w2> (advisory)

## Sources

- CVE List: [CVE-2021-42135](https://www.cve.org/CVERecord?id=CVE-2021-42135), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-362v-wg5p-64w2](https://github.com/advisories/GHSA-362v-wg5p-64w2), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0578](https://pkg.go.dev/vuln/GO-2022-0578), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2021-42135](https://nvd.nist.gov/vuln/detail/CVE-2021-42135), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-VAULT-2021-42135](https://osv.dev/vulnerability/BIT-VAULT-2021-42135), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-42135 · Whole record: https://cve.day/CVE-2021-42135.json · Rebuilt by cve.day 2026-11-25T22:58:04.402Z
