BreachSpiderVerified, not vibes

CVE-2022-40186 in Hashicorp Vault

Critical 9.1 Fix available

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.1
EPSS1.0%
EPSS percentile62th
FixAvailable

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Hashicorp Vault ≥ 1.8.0, < 1.9.9 ≥ 1.10.0, < 1.10.6 ≥ 1.11.0, < 1.11.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-40186
BreachSpider IDBS-2022-GLOBAL-065678-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Published2022-09-22
Last modified2025-05-27
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-639: Authorization Bypass Through User-Controlled Key (IDOR)

Software uses a user-supplied key to access resources without verifying authorization for that specific resource.

Analysis AI-written, not human-reviewed

A vulnerability in the Identity Engine of HashiCorp Vault and Vault Enterprise before 1.11.3 allows for unintended access to key/value paths due to improper handling of alias names for entities with multiple mount accessors.

An attacker with the ability to create or modify entities and aliases in the Identity Engine could exploit this vulnerability to overwrite metadata for the wrong alias, potentially gaining unauthorized access to sensitive key/value paths.

Questions

What is CVE-2022-40186?

A vulnerability in the Identity Engine of HashiCorp Vault and Vault Enterprise before 1.11.3 allows for unintended access to key/value paths due to improper handling of alias names for entities with multiple mount accessors.

What is the CVSS score for CVE-2022-40186?

CVE-2022-40186 has CVSS 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. EPSS: 1.0%.

Is CVE-2022-40186 actively exploited?

No confirmed active exploitation of CVE-2022-40186 as of 2026-05-30.

How do I remediate CVE-2022-40186?

Priority: HIGH. Advisory: https://discuss.hashicorp.com PSIRT: [email protected]

What systems are affected by CVE-2022-40186?

CVE-2022-40186 affects Hashicorp Vault.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Hashicorp","product":"Vault","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-05-27.