CVE-2026-5006: Vault Vulnerable to Privilege Escalation via Slash Injection in Templated Policy Paths
CVE-2026-5006 affects 243 listed versions of HashiCorp Vault in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
HashiCorp Vault
243 of 250 listed versions are affected. Fixed in 2.0.4. The newest release, 2.2.2, is not affected.
2.0.3 2.0.2 2.0.1 2.0.0 1.21.14 1.21.12 1.21.9 1.21.8 1.21.6 1.21.5 1.21.4 1.21.3 1.21.2 1.21.1 1.21.0 1.20.17 1.20.14 1.20.13 1.20.11 1.20.10 1.20.5 1.20.4 1.20.3 1.20.2 1.20.1 1.20.0 1.19.26 1.19.25 1.19.23 1.19.20 1.19.19 1.19.17 1.19.16 1.19.11 1.19.8 1.19.7 1.19.6 1.19.5 1.19.4 1.19.3 1.19.2 1.18.15 1.18.13 1.18.12 1.18.11 1.18.9 1.18.7 1.18.6 1.18.5 1.18.4 1.18.3 1.18.2 1.18.1 1.18.0 1.17.17 1.17.16 1.17.14 1.17.13 1.17.8 1.17.7 and 183 more
What it is
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.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N (Hashicorp)
Published by Hashicorp on 24 August 2026. Last changed 12 October 2026.
Sources
Check one version you run: look CVE-2026-5006 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.