# CVE-2022-40186: HashiCorp Vault vulnerable to incorrect metadata access

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/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): 1.07%, higher than 65% of CVEs (2026-12-02)
- Published: 2022-09-22T00:00:00.000Z
- Modified: 2026-09-08T08:48:21.175Z
- Also known as: GHSA-7cgv-v83v-rr87, BIT-VAULT-2022-40186, GO-2022-1021
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/hashicorp/vault (Go): from 1.11.0 before 1.11.3; from 1.10.0 before 1.10.6; from 1.8.0 before 1.9.9
- hashicorp vault: from 1.8.0 before 1.9.9; from 1.10.0 before 1.10.6; from 1.11.0 before 1.11.3
- vault (Bitnami): from 1.8.0 before 1.9.9; from 1.10.0 before 1.10.6; from 1.11.0 before 1.11.3

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://discuss.hashicorp.com> (advisory, 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> (advisory, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20221111-0008/> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-40186> (advisory, web)
- <https://github.com/hashicorp/vault> (web)
- <https://security.netapp.com/advisory/ntap-20221111-0008> (web)
- <https://github.com/advisories/GHSA-7cgv-v83v-rr87> (advisory)

## Sources

- CVE List: [CVE-2022-40186](https://www.cve.org/CVERecord?id=CVE-2022-40186), CVE Terms of Use, modified 2025-05-27
- GitHub Advisory Database: [GHSA-7cgv-v83v-rr87](https://github.com/advisories/GHSA-7cgv-v83v-rr87), CC-BY-4.0, modified 2025-05-28
- Go Vulnerability Database: [GO-2022-1021](https://pkg.go.dev/vuln/GO-2022-1021), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-40186](https://nvd.nist.gov/vuln/detail/CVE-2022-40186), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-VAULT-2022-40186](https://osv.dev/vulnerability/BIT-VAULT-2022-40186), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-40186 · Whole record: https://cve.day/CVE-2022-40186.json · Rebuilt by cve.day 2026-11-25T22:58:15.198Z
