CVE-2026-5006

published 24 Aug 2026 · updated 26 Aug 2026

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

6.8MediumCVSS 6.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Vault 2.0.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
HashiCorpVault>=0.11.0 <2.0.42.0.4

Exploit evidence

1 public sources

Vendor advisories

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in HashiCorp, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-5006 severity on Zeptric[![CVE-2026-5006](https://zeptric.io/badge/cve/CVE-2026-5006.svg)](https://zeptric.io/cve/CVE-2026-5006)