---
id: CVE-2026-5006
title: >-
  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 att…
summary: >-
  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 att…
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-639
published: '2026-08-24'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T21:10:00.227'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-5006'
references:
  - url: >-
      https://discuss.hashicorp.com/t/hcsec-2026-32-vault-vulnerable-to-privilege-escalation-via-slash-injection-in-templated-policy-paths
    label: security@hashicorp.com
tags:
  - nvd
  - exploit-available
epss: 0.00279
epssPercentile: 0.18823
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/tcollins-hashicorp/vault-cve-2026-5006-audit'
  checkedAt: '2026-10-12T22:06:14.845Z'
exploitAvailable: true
ingestedAt: '2026-10-12T22:05:40.344Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
