{"id":"CVE-2026-5006","summary":"Vault Vulnerable to Privilege Escalation via Slash Injection in Templated Policy Paths","details":"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.\n\nAn attacker who can control the referenced identity value may include slash ({{/}}) characters that Vault interprets as additional path segments when rendering the policy.\n\nThis 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.","aliases":["BIT-vault-2026-5006"],"modified":"2026-08-30T03:31:03.883063892Z","published":"2026-08-24T20:32:49.396Z","database_specific":{"cwe_ids":["CWE-639"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5006.json","cna_assigner":"HashiCorp"},"references":[{"type":"WEB","url":"https://discuss.hashicorp.com/t/hcsec-2026-32-vault-vulnerable-to-privilege-escalation-via-slash-injection-in-templated-policy-paths"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5006.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5006"},{"type":"PACKAGE","url":"https://github.com/hashicorp/vault"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/hashicorp/vault","events":[{"introduced":"87492f9258e0227f3717e3883c6a8be5716bf564"},{"fixed":"c9e9d1d4ddd4b55aae79a8949adffa9e96338720"}],"database_specific":{"extracted_events":[{"introduced":"0.11.0"},{"fixed":"2.0.4"}],"source":"AFFECTED_FIELD"}}],"versions":["v2.0.3","v2.0.2","v2.0.1","v2.0.0","v2.0.0-rc1","sdk/v0.19.0","api/v1.21.0","sdk/v0.14.1","sdk/v0.18.0","api/auth/userpass/v0.10.0","api/auth/ldap/v0.10.0","api/auth/kubernetes/v0.10.0","api/auth/gcp/v0.10.0","api/auth/azure/v0.9.0","api/auth/aws/v0.10.0","api/auth/approle/v0.10.0","api/v1.20.0","sdk/v0.17.0","sdk/v0.16.0","sdk/v0.15.0","api/auth/userpass/v0.9.0","api/auth/ldap/v0.9.0","api/auth/kubernetes/v0.9.0","api/auth/gcp/v0.9.0","api/auth/azure/v0.8.0","api/auth/aws/v0.9.0","api/auth/approle/v0.9.0","api/v1.16.0","sdk/v0.14.0","api/auth/userpass/v0.8.0","api/auth/ldap/v0.8.0","api/auth/kubernetes/v0.8.0","api/auth/gcp/v0.8.0","api/auth/azure/v0.7.0","api/auth/aws/v0.8.0","api/auth/approle/v0.8.0","api/v1.15.0","sdk/v0.13.0","api/auth/userpass/v0.7.0","api/auth/ldap/v0.7.0","api/auth/kubernetes/v0.7.0","api/auth/gcp/v0.7.0","api/auth/azure/v0.6.0","api/auth/aws/v0.7.0","api/auth/approle/v0.7.0","api/v1.14.0","api/v1.13.0","sdk/v0.12.0","api/v1.12.2","sdk/v0.11.1","api/v1.12.1","api/auth/userpass/v0.6.0","api/auth/ldap/v0.6.0","api/auth/kubernetes/v0.6.0","api/auth/gcp/v0.6.0","api/auth/aws/v0.6.0","api/auth/approle/v0.6.0","sdk/v0.11.0","api/v1.12.0","api/v1.11.0","sdk/v0.10.1","api/auth/userpass/v0.5.0","api/auth/ldap/v0.5.0","api/auth/kubernetes/v0.5.0","api/auth/gcp/v0.5.0","api/auth/azure/v0.5.0","api/auth/aws/v0.5.0","api/auth/approle/v0.5.0","sdk/v0.10.0","api/v1.10.0","sdk/v0.9.2","api/auth/userpass/v0.4.1","api/auth/ldap/v0.4.1","api/auth/kubernetes/v0.4.1","api/auth/gcp/v0.4.1","api/auth/azure/v0.4.1","api/auth/aws/v0.4.1","api/auth/approle/v0.4.1","sdk/v0.9.1","api/v1.9.2","api/v1.9.1","sdk/v0.9.0","api/auth/userpass/v0.4.0","api/auth/ldap/v0.4.0","api/auth/kubernetes/v0.4.0","api/auth/gcp/v0.4.0","api/auth/azure/v0.4.0","api/auth/aws/v0.4.0","api/auth/approle/v0.4.0","sdk/v0.8.0","api/v1.9.0","api/v1.8.3","sdk/v0.7.0","sdk/v0.6.2","sdk/v0.6.1","api/v1.8.2","api/v1.8.1","api/auth/userpass/v0.3.0","api/auth/ldap/v0.3.0","api/auth/kubernetes/v0.3.0","api/auth/gcp/v0.3.0","api/auth/azure/v0.3.0","api/auth/aws/v0.3.0","api/auth/approle/v0.3.0","api/v1.8.0","sdk/v0.6.0","api/auth/userpass/v0.2.0","api/auth/ldap/v0.2.0","api/auth/kubernetes/v0.2.0","api/auth/gcp/v0.2.0","api/auth/azure/v0.2.0","api/auth/aws/v0.2.0","api/auth/approle/v0.2.0","sdk/v0.5.3","api/v1.7.2","sdk/v0.5.1","api/v1.7.1","api/v1.7.0","api/v1.6.0","sdk/v0.5.0","api/v1.5.0","sdk/v0.4.1","last-go-modable","api/auth/ldap/v0.1.0","api/v1.3.1","api/auth/approle/v0.1.1","main-creation","api/auth/gcp/v0.1.0","api/auth/azure/v0.1.0","api/auth/userpass/v0.1.0","api/auth/kubernetes/v0.1.0","api/auth/aws/v0.1.0","api/auth/approle/v0.1.0","sdk/v0.3.0","api/v1.2.0","api/v1.1.1","sdk/v0.2.1","v1.2.0","v1.2.0-rc1","api/v1.0.4","sdk/v0.1.13","api/v1.0.3","sdk/v0.1.12","v1.2.0-beta2","v1.2.0-beta1","sdk/v0.1.11","sdk/v0.1.10","api/v1.0.2","v1.1.1","sdk/v0.1.9","api/v1.0.1","sdk/v0.1.8","v1.1.0","v1.1.0-beta2","v1.1.0-beta1","v1.0.3","v1.0.2","v1.0.1","v1.0.0","v1.0.0-rc1","v1.0.0-beta2","v1.0.0-beta1","v0.11.2","v0.11.1","v0.11.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-5006.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"}]}