{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-5006",
        "assignerOrgId": "67fedba0-ff2e-4543-ba5b-aa93e87718cc",
        "state": "PUBLISHED",
        "assignerShortName": "HashiCorp",
        "dateReserved": "2026-03-27T13:52:35.219Z",
        "datePublished": "2026-08-24T20:32:49.396Z",
        "dateUpdated": "2026-08-24T20:32:49.396Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "defaultStatus": "unaffected",
                    "platforms": [
                        "64 bit",
                        "32 bit",
                        "x86",
                        "ARM",
                        "MacOS",
                        "Windows",
                        "Linux"
                    ],
                    "product": "Vault",
                    "repo": "https://github.com/hashicorp/vault",
                    "vendor": "HashiCorp",
                    "versions": [
                        {
                            "changes": [
                                {
                                    "at": "2.0.4",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "2.0.4",
                            "status": "affected",
                            "version": "0.11.0",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "defaultStatus": "unaffected",
                    "platforms": [
                        "64 bit",
                        "32 bit",
                        "x86",
                        "ARM",
                        "MacOS",
                        "Windows",
                        "Linux"
                    ],
                    "product": "Vault Enterprise",
                    "repo": "https://github.com/hashicorp/vault",
                    "vendor": "HashiCorp",
                    "versions": [
                        {
                            "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"
                                }
                            ],
                            "lessThan": "2.0.4",
                            "status": "affected",
                            "version": "0.11.0",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "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/])"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>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.</p><br/>"
                        }
                    ],
                    "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."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-240",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-240: Resource Injection"
                        }
                    ]
                }
            ],
            "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": {
                "orgId": "67fedba0-ff2e-4543-ba5b-aa93e87718cc",
                "shortName": "HashiCorp",
                "dateUpdated": "2026-08-24T20:32:49.396Z"
            },
            "references": [
                {
                    "url": "https://discuss.hashicorp.com/t/hcsec-2026-32-vault-vulnerable-to-privilege-escalation-via-slash-injection-in-templated-policy-paths"
                }
            ],
            "source": {
                "advisory": "HCSEC-2026-32",
                "discovery": "EXTERNAL"
            },
            "title": "Vault Vulnerable to Privilege Escalation via Slash Injection in Templated Policy Paths"
        }
    }
}