Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-40186
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 06:49 UTC · Revision 1
Source evidence
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.
osv:CVE-2022-40186
Complete source record
{
"id": "159b8470c94901d41ef5b8876a086d0b6ff71b38a365ca16ea24a38734bdc3fc",
"url": "https://osv.dev/vulnerability/CVE-2022-40186",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2022-40186",
"summary": "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.",
"evidence": "osv:CVE-2022-40186",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2022-40186",
"aliases": [
"BIT-vault-2022-40186",
"CVE-2022-40186",
"GHSA-7cgv-v83v-rr87",
"GO-2022-1021"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/hashicorp/vault",
"type": "GIT",
"events": [
{
"introduced": "82a99f14eb6133f99a975e653d4dac21c17505c7"
},
{
"fixed": "9c11f0a48a8995ea2976039dcc5197b3350bcf42"
},
{
"introduced": "7738ec5d0d6f5bf94a809ee0f6ff0142cfa525a6"
},
{
"fixed": "45020b0a2020d0a98983b92c8f67ae64ab148ddf"
},
{
"introduced": "ea296ccf58507b25051bc0597379c467046eb2f1"
},
{
"fixed": "17250b25303c6418c283c95b1d5a9c9f16174fe8"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:*",
"range": [
{
"introduced": "1.8.0"
},
{
"fixed": "1.9.9"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "1.8.0"
},
{
"fixed": "1.9.9"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:*",
"range": [
{
"introduced": "1.10.0"
},
{
"fixed": "1.10.6"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "1.10.0"
},
{
"fixed": "1.10.6"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:*",
"range": [
{
"introduced": "1.11.0"
},
{
"fixed": "1.11.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "1.11.0"
},
{
"fixed": "1.11.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v1.11.2",
"v1.10.5",
"v1.11.1",
"v1.11.0",
"v1.10.4",
"v1.10.3",
"v1.10.2",
"v1.10.1",
"v1.10.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-40186.json"
}
}
],
"modified": "2026-10-28T02:30:49.978637175Z",
"provider": "osv",
"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://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40186.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-40186",
"https://security.netapp.com/advisory/ntap-20221111-0008/"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40186.json"
}
},
"related_cves": [
{
"value": "CVE-2022-40186",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518544,
"published_at": "2022-09-22T00:00:00+00:00"
}