Summary
OpenBao's Transit key import can allow an authenticated attacker to bypass ACL name restrictions by using path traversal sequences in an imported key name. If the attacker can access the import operation and the policy relies on a name constraint, key material could be written under a different Transit key name.
Affected context
The vulnerability occurs in OpenBao's Transit key import functionality when ACL policies constrain the permitted key name using a required_parameters name constraint. A crafted traversal sequence may evade that restriction and direct imported key material to another Transit key name. The risk depends on the import endpoint being accessible to an authenticated caller under a policy with this kind of constraint.
Exploit preconditions
- Attack surface: OpenBao Transit key import functionality
- Required access: Authentication and permission to invoke the relevant import operation
- Trigger point: Processing an imported key name subject to an ACL
required_parametersname constraint - Why exploitation is possible: Traversal sequences in the supplied name can bypass the intended name restriction and target another Transit key name
Why this happens
The issue is an insufficiently constrained path or name value during Transit key import. If traversal sequences are not safely rejected or normalized before ACL name restrictions are applied, an attacker-controlled name can resolve outside the intended naming boundary. This maps to CWE-73: External Control of File Name or Path, describing cases where externally controlled path values are not adequately restricted. In this context, the affected boundary is Transit key naming and authorization, not necessarily filesystem access.
Potential impact
- An attacker may bypass ACL name restrictions on key import.
- Key material could be written under an unintended Transit key name.
- Existing key names or cryptographic workflows could be affected, depending on the target and deployment.
- Applications relying on the policy's name constraint could lose expected authorization boundaries.
General mitigation guidance
Mitigation generally focuses on enforcing authorization against a canonical, validated key name and rejecting traversal sequences at the boundary.
Common defensive patterns include:
- Applying strict allowlists and canonicalization to key names before authorization checks.
- Ensuring ACL checks use the same normalized name that the import operation will use.
- Avoiding reliance on a single parameter constraint as the only control over key naming.
- Limiting import permissions to trusted users and narrowly scoped roles.
- Reviewing key-management workflows for unintended overwrite or naming behavior.
How teams detect issues like this
Detection approaches may include:
- Reviewing import handlers for inconsistent validation, normalization, and authorization of key names.
- Using static analysis or code review checks to flag externally controlled names that reach path-like resolution logic.
- Monitoring audit records for unusual import requests or key names containing traversal patterns.
- Enforcing policy tests that verify name constraints cannot be bypassed through alternate or normalized representations.

