{"id":"CVE-2022-40186","aliases":["CVE-2022-40186","GHSA-7cgv-v83v-rr87","BIT-VAULT-2022-40186","GO-2022-1021"],"related":[],"kind":"vulnerability","state":"published","title":"HashiCorp Vault vulnerable to incorrect metadata access","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"HashiCorp Vault vulnerable to incorrect metadata access in github.com/hashicorp/vault","format":"markdown","source":"go"},{"lang":"es","text":"Se ha detectado un problema en HashiCorp Vault y Vault Enterprise versiones anteriores a 1.11.3. Se ha encontrado una vulnerabilidad en el Motor de Identidades por la que, en una implementación en la que una entidad presenta varios accesos de montaje con nombres de alias compartidos, Vault puede sobrescribir los metadatos en el alias incorrecto debido a un problema de comprobación del alias correcto asignado a una entidad. Esto puede permitir un acceso involuntario a las rutas de clave/valor usando esos metadatos en Vault","source":"nvd"}],"published":"2022-09-22T00:00:00.000Z","modified":"2026-09-08T08:48:21.175Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-639"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.11.0","status":"affected","fixed":"1.11.3"}],"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.10.0","status":"affected","fixed":"1.10.6"}],"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.9.9"}],"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.9.9"},{"type":"semver","introduced":"1.10.0","status":"affected","fixed":"1.10.6"},{"type":"semver","introduced":"1.11.0","status":"affected","fixed":"1.11.3"}],"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","source":"go"},{"ranges":[{"status":"affected","introduced":"1.8.0","fixed":"1.9.9"},{"status":"affected","introduced":"1.8.0","fixed":"1.9.9"},{"status":"affected","introduced":"1.10.0","fixed":"1.10.6"},{"status":"affected","introduced":"1.10.0","fixed":"1.10.6"},{"status":"affected","introduced":"1.11.0","fixed":"1.11.3"},{"status":"affected","introduced":"1.11.0","fixed":"1.11.3"}],"vendor":"hashicorp","product":"vault","cpe":"cpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.9.9"},{"type":"semver","introduced":"1.10.0","status":"affected","fixed":"1.10.6"},{"type":"semver","introduced":"1.11.0","status":"affected","fixed":"1.11.3"}],"ecosystem":"Bitnami","package":"vault","purl":"pkg:bitnami/vault","source":"bitnami"}],"references":[{"url":"https://discuss.hashicorp.com","tags":["advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"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","tags":["advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20221111-0008/","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40186","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/hashicorp/vault","tags":["web"],"sources":["ghsa","go"]},{"url":"https://security.netapp.com/advisory/ntap-20221111-0008","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-7cgv-v83v-rr87","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-05-27T18:10:45.868Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-40186","url":"https://www.cve.org/CVERecord?id=CVE-2022-40186","licence":"CVE Terms of Use","modified":"2025-05-27T18:11:29.644Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7cgv-v83v-rr87","url":"https://github.com/advisories/GHSA-7cgv-v83v-rr87","licence":"CC-BY-4.0","modified":"2025-05-28T19:39:57.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-1021","url":"https://pkg.go.dev/vuln/GO-2022-1021","licence":"CC-BY-4.0","modified":"2026-03-03T04:52:36.124Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-40186","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40186","licence":"Public domain","modified":"2026-06-17T05:01:04.160Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-VAULT-2022-40186","url":"https://osv.dev/vulnerability/BIT-VAULT-2022-40186","licence":"Apache-2.0","modified":"2026-09-08T08:48:21.175Z"}],"updatedAt":"2026-11-25T22:58:15.198Z","epss":{"score":0.0107,"percentile":0.65829,"date":"2026-12-02T12:00:21.000Z"}}