CVE-2022-40186
vault: Vault Entity Alias Metadata May Leak Between Aliases With The Same Name Assigned To The Same Entity
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Bitnami. Rated lower by Red Hat (high).
Description
An issue was discovered in HashiCorp Vault and Vault Enterprise before 1.11.3. A vulnerability in the Identity Engine was found where, in a deployment where an entity has multiple mount accessors with shared alias names, Vault may overwrite metadata to the wrong alias due to an issue with checking the proper alias assigned to an entity. This may allow for unintended access to key/value paths using that metadata in Vault.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | vault | 1.9.9, 1.10.6, 1.11.3 |
| go::GitHub Security Advisory Go | github.com/hashicorp/vault | 1.11.3, 1.10.6, 1.9.9 |
References
- https://access.redhat.com/security/cve/CVE-2022-40186
- https://discuss.hashicorp.com
- https://discuss.hashicorp.com/t/hcsec-2022-18-vault-entity-alias-metadata-may-leak-between-aliases-with-the-same-name-assigned-to-the-same-entity/44550
- https://github.com/hashicorp/vault
- https://nvd.nist.gov/vuln/detail/CVE-2022-40186
- https://security.netapp.com/advisory/ntap-20221111-0008
- https://security.netapp.com/advisory/ntap-20221111-0008/
- https://www.cve.org/CVERecord?id=CVE-2022-40186