CVE-2022-40186
CRITICAL 9.1CVSS 3.1HashiCorp Vault vulnerable to incorrect metadata access
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.
- Published
- 22 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-639
- Also known as
- BIT-vault-2022-40186GHSA-7cgv-v83v-rr87GO-2022-1021
- Sources
- NVDJSONOSV GHSA-7cgv-v83v-rr87JSONOSV GO-2022-1021JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
>= 1.8.0, < 1.9.9 | 1.9.9 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 1.8.0, < 1.9.9 | 1.9.9 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
>= 1.10.0, < 1.10.6 | 1.10.6 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 1.10.0, < 1.10.6 | 1.10.6 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
>= 1.11.0, < 1.11.3 | 1.11.3 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 1.11.0, < 1.11.3 | 1.11.3 |
| OSV | Go | github.com/hashicorp/vault | >= 1.11.0, < 1.11.3 | 1.11.3 |
| OSV | Go | github.com/hashicorp/vault | >= 1.10.0, < 1.10.6 | 1.10.6 |
| OSV | Go | github.com/hashicorp/vault | >= 1.8.0, < 1.9.9 | 1.9.9 |
| OSV | Go | github.com/hashicorp/vault | >= 1.8.0, < 1.9.9; >= 1.10.0, < 1.10.6; >= 1.11.0, < 1.11.3 | 1.9.9, 1.10.6, 1.11.3 |
References
- https://discuss.hashicorp.com · Vendor Advisory, WEB
- 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 · Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20221111-0008/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-40186 · ADVISORY
- https://github.com/hashicorp/vault · WEB
- https://github.com/advisories/GHSA-7cgv-v83v-rr87 · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 22 Sep 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Sep 2022)