CVE-2022-40186 json
HashiCorp Vault vulnerable to incorrect metadata access
published 2022-09-22 4 y ago modified 2026-09-08 2 mo ago also BIT-vault-2022-40186 , EUVD-2022-6730 , GHSA-7cgv-v83v-rr87 , GO-2022-1021
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
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.
Patch / fix
- go github.com/hashicorp/vault 1.9.9, 1.10.6, 1.11.3
- bitnami vault 1.9.9, 1.10.6, 1.11.3
- hashicorp vault 1.9.9, 1.10.6, 1.11.3
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-40186 updated cvss 9.1
vault: Vault Entity Alias Metadata May Leak Between Aliases With The Same Name Assigned To The Same Entity
-
Red Hat Openshift Data Foundation 4 odf4/ocs-rhel9-operator, odf4/odf-multicluster-rhel9-operatoraffected: no fix available
-
Red Hat RHODF 4.11 for RHEL 8 odf4/rook-ceph-rhel8-operator v4.11.7-1, odf4/rook-ceph-rhel9-operator v4.11.7-1fixed: vendor fix RHSA-2023:2023
-
Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/logging-loki-rhel8 Red Hat OpenShift Container Platform 4 openshift4/ose-installer, openshift4/topology-aware-lifecycle-manager-rhel8-operator Red Hat Openshift Container Storage 4 ocs4/cephcsi-rhel8, ocs4/mcg-rhel8-operator, ocs4/ocs-rhel8-operator, ocs4/rook-ceph-rhel8-operator Red Hat Openshift Data Foundation 4 odf4/cephcsi-rhel9, odf4/mcg-rhel9-operator, odf4/odf-rhel8-operator, odf4/odr-rhel8-operator Red Hat RHODF 4.11 for RHEL 8 odf4/cephcsi-rhel8 v4.11.7-1, odf4/mcg-core-rhel8 v4.11.7-1, odf4/odf-console-rhel8 v4.11.7-1, odf4/odf-console-rhel9 v4.11.7-1, odf4/odf-topolvm-rhel8 v4.11.7-1, odf4/mcg-rhel8-operator v4.11.7-1, +28 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 17 mo ago
Exploit prediction
1.00% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/hashicorp/vault | >=1.11.0, <1.11.3 >=1.10.0, <1.10.6 >=1.8.0, <1.9.9 |
1.11.3 1.10.6 1.9.9 |
| bitnami | 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 |
Classification
- Weakness
-
- CWE-639 Authorization Bypass Through User-Controlled Key
References
-
discuss.hashicorp.com
web, vendor-advisory, advisory
-
discuss.hashicorp.com
/t/hcsec-2022-18-vault-entity-alias-metadata-may-leak-between-aliases-with-the-same-name-assigned-to-the-same-
web, vendor-advisory, advisory
-
security.netapp.com
/advisory/ntap-20221111-0008/
third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-40186
advisory, web
-
github.com
/hashicorp/vault
web
-
security.netapp.com
/advisory/ntap-20221111-0008
web
-
github.com
/advisories/GHSA-7cgv-v83v-rr87
advisory
Sources
- CVE List CVE-2022-40186
- GitHub Advisory GHSA-7cgv-v83v-rr87
- NVD CVE-2022-40186
- OSV BIT-vault-2022-40186
- OSV GO-2022-1021
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.