Description
A vulnerability was identified in HashiCorp Vault and Vault Enterprise (“Vault”) such that an authenticated attacker may manipulate an identity value referenced by a templated policy path to gain unintended access to Vault paths.

An attacker who can control the referenced identity value may include slash ({{/}}) characters that Vault interprets as additional path segments when rendering the policy.

This vulnerability, CVE-2026-5006, was fixed in Vault Community Edition 2.0.4 and Vault Enterprise 2.0.4, 1.21.9, 1.20.14, and 1.19.20.
Published: 2026-08-24
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Privilege escalation through unintended access to Vault paths
Action: Immediate Patch
AI Analysis

Impact

A flaw in HashiCorp Vault allows an attacker who can authenticate and control a referenced identity value to insert slash characters into that value. These slashes are treated as additional path segments when the policy template is rendered, permitting the attacker to reach Vault paths that should be inaccessible. This results in unauthorized access and potential data exfiltration or configuration changes. The weakness is an authorization bypass through a user‑controlled key (CWE‑639). The documented severity is a CVSS score of 6.8, indicating a medium‑risk vulnerability. The attack requires an authenticated session and the ability to influence the identity field used in a templated policy path.

Affected Systems

The vulnerability affects HashiCorp Vault Community Edition and Vault Enterprise. Fixed releases include Community Edition 2.0.4; Enterprise 2.0.4, 1.21.9, 1.20.14, and 1.19.20. All prior versions are potentially vulnerable. Administrators should verify their installed version against these patches.

Risk and Exploitability

Based on the description, it is inferred that exploit developers may target users with privileged roles or wildcard access rights, given the requirement for authenticated access. The CVSS score of 6.8 reflects the medium risk, and the EPSS score is currently unreported, suggesting no readily available exploit code. The vulnerability is not listed in the CISA KEV catalog. Attackers can manipulate the identity key value in a templated policy path to traverse the hierarchy, a typical path‑injection attack vector. The instruction to include slash characters is a direct injection that bypasses intended access controls. Based on the description, it is inferred that the exploit is likely to be launched from within an existing authenticated session, making it harder to mitigate by external means.

Generated by OpenCVE AI on August 24, 2026 at 21:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Vault to a fixed version: Community Edition 2.0.4 or Enterprise 2.0.4, 1.21.9, 1.20.14, or 1.19.20.
  • Validate and sanitize any identity value used in templated policy paths to strip or reject slash characters before rendering the policy.
  • Restrict the ability to supply identity values to only trusted users and promptly revoke or rotate credentials that may have been used to exploit the vulnerability.

Generated by OpenCVE AI on August 24, 2026 at 21:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 24 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Hashicorp
Hashicorp vault
Hashicorp vault Enterprise
Vendors & Products Hashicorp
Hashicorp vault
Hashicorp vault Enterprise

Mon, 24 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
Description A vulnerability was identified in HashiCorp Vault and Vault Enterprise (“Vault”) such that an authenticated attacker may manipulate an identity value referenced by a templated policy path to gain unintended access to Vault paths. An attacker who can control the referenced identity value may include slash ({{/}}) characters that Vault interprets as additional path segments when rendering the policy. This vulnerability, CVE-2026-5006, was fixed in Vault Community Edition 2.0.4 and Vault Enterprise 2.0.4, 1.21.9, 1.20.14, and 1.19.20.
Title Vault Vulnerable to Privilege Escalation via Slash Injection in Templated Policy Paths
Weaknesses CWE-639
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Hashicorp Vault Vault Enterprise
cve-icon MITRE

Status: PUBLISHED

Assigner: HashiCorp

Published:

Updated: 2026-08-26T03:56:14.745Z

Reserved: 2026-03-27T13:52:35.219Z

Link: CVE-2026-5006

cve-icon Vulnrichment

Updated: 2026-08-25T17:39:19.624Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-24T21:17:46.147

Modified: 2026-08-28T15:47:00.217

Link: CVE-2026-5006

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-24T21:45:03Z

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key