CVE-2026-5006: Vault Vulnerable to Privilege Escalation via Slash Injection in Templated Policy Paths

Published Aug 24, 2026
·
Updated

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 Software

1 affected component
HashiCorp Vault=2.0.4, =1.21.9, =1.20.14, =1.19.20

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade HashiCorp Vault Community Edition to a version that resolves this vulnerability.

    Fixed in 2.0.4Patch CVE-2026-5006
  2. Upgrade

    Upgrade HashiCorp Vault Enterprise to a version that resolves this vulnerability.

    Fixed in 2.0.4Patch CVE-2026-5006
  3. Upgrade

    Upgrade HashiCorp Vault Enterprise to a version that resolves this vulnerability.

    Fixed in 1.21.9Patch CVE-2026-5006
  4. Upgrade

    Upgrade HashiCorp Vault Enterprise to a version that resolves this vulnerability.

    Fixed in 1.20.14Patch CVE-2026-5006
  5. Upgrade

    Upgrade HashiCorp Vault Enterprise to a version that resolves this vulnerability.

    Fixed in 1.19.20Patch CVE-2026-5006

Event History

Aug 24, 2026
CVE Published
via MITRE·08:32 PM
Data Sourced
via MITRE·08:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Vault deployments are exposed if they use templated policy paths that reference an identity value an authenticated attacker can control. The attacker must be able to place slash characters in that referenced value.

2

What access does an attacker need to exploit it?

The attacker must already be authenticated and have the ability to control an identity value used in a templated policy path. Exploitation does not require user interaction, but the documented attack complexity is high.

3

Which versions contain the fix?

The issue is fixed in Vault Community Edition 2.0.4 and Vault Enterprise 2.0.4, 1.21.9, 1.20.14, and 1.19.20.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203