CVE-2021-42135
HIGH 8.1CVSS 3.1Incorrect Privilege Assignment in HashiCorp Vault
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.
- Published
- 11 Oct 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-266CWE-269CWE-863
- Also known as
- BIT-vault-2021-42135GHSA-362v-wg5p-64w2GO-2022-0578
- Sources
- NVDJSONOSV GHSA-362v-wg5p-64w2JSONOSV GO-2022-0578JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.9 | AV:N/AC:M/Au:S/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
>= 1.8.0, <= 1.8.4 | |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 1.8.0, <= 1.8.4 | |
| OSV | Go | github.com/hashicorp/vault | >= 1.8.0, <= 1.8.4 | |
| OSV | Go | github.com/hashicorp/vault | >= 1.8.0, < 1.8.5 | 1.8.5 |
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/ · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-42135 · ADVISORY
- 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 11 Oct 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 12 Oct 2021)