Bug 2181405 (CVE-2022-40186)

Summary: CVE-2022-40186 vault: Vault Entity Alias Metadata May Leak Between Aliases With The Same Name Assigned To The Same Entity
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: amctagga, jcantril, mrajanna, muagarwa, nbecker, ocs-bugs, periklis, tnielsen
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vault 1.11.3, vault 1.10.6, vault 1.9.9 Doc Type: ---
Doc Text:
A flaw was found in HashiCorp Vault and Vault Enterprise, where they could allow a locally authenticated attacker to gain unauthorized access to the system, caused by a flaw in the alias naming schema implementation for mount accessors with shared alias names in the Identity Engine. By conducting a specially-crafted operation, an attacker can overwrite metadata to the wrong alias, gaining unauthorized access to key/value paths using the metadata in Vault.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-26 15:09:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2181418, 2181419, 2181420, 2181421, 2181422    
Bug Blocks: 2181363    

Description Avinash Hanwate 2023-03-24 03:38:24 UTC
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.

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

Comment 2 errata-xmlrpc 2023-04-26 10:01:18 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Data Foundation 4.11 on RHEL8

Via RHSA-2023:2023 https://access.redhat.com/errata/RHSA-2023:2023

Comment 3 Product Security DevOps Team 2023-04-26 15:09:56 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-40186