{"id":"CVE-2021-42135","aliases":["CVE-2021-42135","GHSA-362v-wg5p-64w2","BIT-VAULT-2021-42135","GO-2022-0578"],"related":[],"kind":"vulnerability","state":"published","title":"Incorrect Privilege Assignment in HashiCorp Vault","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Incorrect Privilege Assignment in HashiCorp Vault in github.com/hashicorp/vault","format":"markdown","source":"go"},{"lang":"es","text":"HashiCorp Vault y Vault Enterprise versiones 1.8.x a 1.8.4, pueden tener una interacción inesperada entre las políticas relacionadas con glob y el motor de secretos de Google Cloud. Los usuarios pueden, en algunas situaciones, tener más privilegios de los previstos, por ejemplo, un usuario con permiso de lectura para la ruta /gcp/roleset/* puede ser capaz de emitir credenciales de cuentas de servicio de Google Cloud","source":"nvd"}],"published":"2021-10-11T02:52:59.000Z","modified":"2026-09-08T08:48:21.216Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-266","CWE-269","CWE-863"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","lastAffected":"1.8.4"}],"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.5"}],"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","source":"go"},{"ranges":[{"status":"affected","introduced":"1.8.0","lastAffected":"1.8.4"},{"status":"affected","introduced":"1.8.0","lastAffected":"1.8.4"}],"vendor":"hashicorp","product":"vault","cpe":"cpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.5"}],"ecosystem":"Bitnami","package":"vault","purl":"pkg:bitnami/vault","source":"bitnami"}],"references":[{"url":"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/","tags":["advisory","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42135","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"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","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/hashicorp/vault","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/hashicorp/vault/blob/main/CHANGELOG.md#180","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-362v-wg5p-64w2","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-42135","url":"https://www.cve.org/CVERecord?id=CVE-2021-42135","licence":"CVE Terms of Use","modified":"2024-08-04T03:30:38.162Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-362v-wg5p-64w2","url":"https://github.com/advisories/GHSA-362v-wg5p-64w2","licence":"CC-BY-4.0","modified":"2024-08-21T15:27:04.097Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0578","url":"https://pkg.go.dev/vuln/GO-2022-0578","licence":"CC-BY-4.0","modified":"2026-03-03T04:50:34.525Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-42135","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42135","licence":"Public domain","modified":"2026-06-17T04:09:24.413Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-VAULT-2021-42135","url":"https://osv.dev/vulnerability/BIT-VAULT-2021-42135","licence":"Apache-2.0","modified":"2026-09-08T08:48:21.216Z"}],"updatedAt":"2026-11-25T22:58:04.402Z","epss":{"score":0.0078,"percentile":0.57121,"date":"2026-12-01T12:00:22.000Z"}}