Skip to content
OpenAdvisories
Medium · 6.8 Public exploit CVE-2026-5006 EUVD-2026-65122GHSA-5h48-5rrm-m3c8

Vault Vulnerable to Privilege Escalation via Slash Injection in Templated Policy Paths

Published Aug 24, 2026 · Updated Aug 26, 2026 · Assigned by HashiCorp

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.

Affected products

VendorProductAffectedFixed
HashiCorp Vault 0.11.0 – < 2.0.4 2.0.4
HashiCorp Vault Enterprise 0.11.0 – < 2.0.4 2.0.4

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 1

References