{"id":"CVE-2026-5006","state":"PUBLISHED","title":"Vault Vulnerable to Privilege Escalation via Slash Injection in Templated Policy Paths","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.\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.","publishedAt":"2026-08-24T20:32:49.396Z","updatedAt":"2026-08-26T03:56:14.745Z","severity":{"score":6.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"HashiCorp"},"assigner":"HashiCorp","products":["HashiCorp Vault","HashiCorp Vault Enterprise"],"affected":[{"vendor":"HashiCorp","product":"Vault","defaultStatus":"unaffected","versions":[{"version":"0.11.0","status":"affected","lessThan":"2.0.4","changes":[{"at":"2.0.4","status":"unaffected"}],"versionType":"semver"}],"platforms":["64 bit","32 bit","x86","ARM","MacOS","Windows","Linux"],"repo":"https://github.com/hashicorp/vault"},{"vendor":"HashiCorp","product":"Vault Enterprise","defaultStatus":"unaffected","versions":[{"version":"0.11.0","status":"affected","lessThan":"2.0.4","changes":[{"at":"1.19.20","status":"unaffected"},{"at":"1.20.0","status":"affected"},{"at":"1.20.14","status":"unaffected"},{"at":"1.21.0","status":"affected"},{"at":"1.21.9","status":"unaffected"},{"at":"2.0.0","status":"affected"},{"at":"2.0.4","status":"unaffected"}],"versionType":"semver"}],"platforms":["64 bit","32 bit","x86","ARM","MacOS","Windows","Linux"],"repo":"https://github.com/hashicorp/vault"}],"references":["https://discuss.hashicorp.com/t/hcsec-2026-32-vault-vulnerable-to-privilege-escalation-via-slash-injection-in-templated-policy-paths"],"weaknesses":["CWE-639"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/5xxx/CVE-2026-5006.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-5006","state":"PUBLISHED","datePublished":"2026-08-24T20:32:49.396Z","dateUpdated":"2026-08-26T03:56:14.745Z","assignerShortName":"HashiCorp","assignerOrgId":"67fedba0-ff2e-4543-ba5b-aa93e87718cc","dateReserved":"2026-03-27T13:52:35.219Z"},"containers":{"cna":{"title":"Vault Vulnerable to Privilege Escalation via Slash Injection in Templated Policy Paths","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"HashiCorp","product":"Vault","defaultStatus":"unaffected","versions":[{"version":"0.11.0","status":"affected","lessThan":"2.0.4","changes":[{"at":"2.0.4","status":"unaffected"}],"versionType":"semver"}],"platforms":["64 bit","32 bit","x86","ARM","MacOS","Windows","Linux"],"repo":"https://github.com/hashicorp/vault"},{"vendor":"HashiCorp","product":"Vault Enterprise","defaultStatus":"unaffected","versions":[{"version":"0.11.0","status":"affected","lessThan":"2.0.4","changes":[{"at":"1.19.20","status":"unaffected"},{"at":"1.20.0","status":"affected"},{"at":"1.20.14","status":"unaffected"},{"at":"1.21.0","status":"affected"},{"at":"1.21.9","status":"unaffected"},{"at":"2.0.0","status":"affected"},{"at":"2.0.4","status":"unaffected"}],"versionType":"semver"}],"platforms":["64 bit","32 bit","x86","ARM","MacOS","Windows","Linux"],"repo":"https://github.com/hashicorp/vault"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2026-32-vault-vulnerable-to-privilege-escalation-via-slash-injection-in-templated-policy-paths"}],"metrics":[{"cvssV3_1":{"baseScore":6.8,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-639","description":"CWE-639: Authorization Bypass Through User-Controlled Key","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"HashiCorp","orgId":"67fedba0-ff2e-4543-ba5b-aa93e87718cc","dateUpdated":"2026-08-24T20:32:49.396Z"},"credits":[{"lang":"en","value":"This issue was reported to HashiCorp by Lior Moshe, Uri Rolls, and Daniel Peters, Operating Intelligence ([opint.ai|http://opint.ai/])"}],"impacts":[{"capecId":"CAPEC-240","descriptions":[{"lang":"en","value":"CAPEC-240: Resource Injection"}]}],"source":{"advisory":"HCSEC-2026-32","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-25T00:00:00+00:00","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2026-5006"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-26T03:56:14.745Z"}}]}}}