/

CVE-2026-126309

Severity:

HIGH RISK

(7.1)

Path Traversal (CWE-73) in OpenBao Transit Key Import

CVE-2026-126309

Received

Vulnerability type

Category:

Path Traversal

CWE:

CWE-73

Impact:

ACL restriction bypass and unauthorized Transit key creation or modification

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

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_parameters name 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.

Sources

SourceLink
github.comgithub.com/openbao/openbao/security/advisories/GHSA-5pmx-2p74-x478
vulncheck.comvulncheck.com/advisories/openbao-before-2.6.5-and-2.7.2-path-traversal-in-transit-key-import

Frequently asked

questions

No. The described attack requires an authenticated caller who can access the relevant Transit key import operation.

The attacker needs permission to invoke key import. The risk is particularly relevant when an ACL policy uses a required_parameters name constraint to limit permitted key names.

Validate and canonicalize the key name before authorization, then ensure the import operation uses exactly the name that was checked.

Use strict name allowlists, test authorization against traversal and alternate representations, and keep key-import permissions narrowly scoped.

Find out what's already
exploitable in your codebase.