Skip to main content

OpenBao AWS Plugin CVE-2025-59048

HIGH
Use of Multiple Resources with Duplicate Identifier (CWE-694)
2025-10-23 security-advisories@github.com
8.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain IAM role in untrusted AWS account
  2. Delivery
    Match name of role trusted by OpenBao
  3. Exploit
    Submit AWS auth login to OpenBao endpoint
  4. Execution
    Account-ID-blind cache impersonates trusted role
  5. Impact
    Read secrets and escalate privileges

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V6 - Authentication Use of multiple resources in auth
Exploitation Conditions

Exploitable only in a multi-account AWS deployment of OpenBao's auth-aws (AWS IAM auth) method where an IAM role name is NOT unique across accounts: the attacker must control an IAM role in an untrusted AWS account whose name collides with a role trusted/bound in a trusted account. Per the vendor advisory, wildcards in bound_iam_principal_arn increase the attack surface but are NOT a prerequisite - specific ARN bindings are still exploitable when a role-name collision occurs. Limiting factors: single-account environments and deployments that enforce globally unique IAM role names are not affected; the attacker must already hold valid AWS credentials for a role in some untrusted account (PR:L), and must know or match a trusted role name. Removing wildcards does NOT mitigate the flaw if duplicate names exist.

Impact

This is a genuine high-severity authentication flaw, but its real-world urgency is strongly gated by environmental preconditions rather than being broadly exploitable. The vendor CVSS (8.1, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N) reflects network-reachable exploitation by an attacker who already controls a (low-privilege) IAM role, with high confidentiality and integrity impact - consistent with the GHSA finding that a flawed client cache fails to validate the AWS Account ID, enabling cross-account role impersonation. Countervailing signals lower the practical priority: EPSS is only 0.27% (17th percentile), there is no CISA KEV listing, and no public exploit code is referenced, so this is not evidence of widespread or active exploitation. The decisive limiter is that exploitation requires a multi-account AWS deployment with an IAM role-name collision between a trusted and an untrusted account; single-account users and users with globally unique role names are not affected. CVSS AC:L arguably understates this environmental dependency - the vendor scored complexity as low because an attacker can freely create a same-named role in their own account, but a trusted-side name collision must still exist, which is outside the attacker's control. No SSVC decision data was provided in the input, so automatable/exploitation-maturity cannot be cross-referenced. Net: a real priority for organizations running OpenBao's auth-aws plugin in multi-account AWS, but a low-likelihood, targeted issue rather than a mass-exploitation risk.

Exploit ScenarioDerived

In a multi-account AWS environment, an attacker who controls an IAM role in an untrusted account creates or already possesses a role whose name matches a role trusted by the OpenBao AWS auth method. Because the plugin caches EC2/IAM clients by region and STS role without distinguishing the AWS Account ID, the attacker authenticates as the trusted identity and gains the associated OpenBao access, enabling secret retrieval and privilege escalation. No public exploit code is identified at time of analysis, but the preconditions (a duplicate role name) are simple where naming conventions are not enforced.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 08, 2026

Cross-account IAM role impersonation in OpenBao's auth-aws plugin (versions up to and including 0.1.0) lets an authenticated attacker holding credentials for an IAM role in an untrusted AWS account authenticate to OpenBao by presenting a role name that collides with a trusted role in a different account, granting unauthorized access to secrets, data, and elevated privileges. The flaw is rooted in a client cache that is keyed only by AWS region and STS role and fails to incorporate the AWS Account ID, so a cached credential for one account is reused for another. Exploitation is environment-gated: it only affects multi-account AWS deployments where IAM role names are not globally unique, and a role-name collision must exist; EPSS is low (0.27%, 17th percentile) and no public exploit code has been identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade the auth-aws plugin to version 0.1.1 (fixed in 0.1.1; vulnerable <= 0.1.0), available from the advisory at https://github.com/openbao/openbao-plugins/security/advisories/GHSA-jp7h-4f3c-9rc7 and the fix commit at https://github.com/openbao/openbao-plugins/commit/2a77af36834746ca6d3ac9bd1049154c84b3efae, which keys the EC2/IAM client caches by region, account ID, and STS role and rejects requests for non-default accounts lacking STS configuration. If an immediate upgrade is not possible, the primary and most effective workaround is to guarantee that IAM role names are unique across every AWS account that could interact with OpenBao: audit the AWS organization for duplicate names and rename them using account-specific identifiers, since removing wildcards from bound_iam_principal_arn is a good hardening step but will NOT mitigate the flaw while duplicate names persist (trade-off: renaming roles can break existing policy attachments or trust relationships and requires coordinated change management). Additionally, restrict each OpenBao AWS auth role to specific bound_iam_principal_arn values and tighten trust policies on roles assumed by the plugin, accepting that these reduce but do not eliminate exposure in collision scenarios. Environments that are single-account, or that already enforce globally unique IAM role names, are not affected and need not treat this as urgent.

Affected Packages

go github.com/openbao/openbao-plugins fix: 0.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The auth-aws plugin is a Go-based OpenBao/Vault auth method that authenticates principals by calling AWS STS AssumeRole and validating the resulting identity (IAM principal ARN / account ID) against configured bindings. CWE-694 (Use of Multiple Resources with Duplicate Identifier) describes the root cause precisely: the backend maintains in-memory client caches (EC2ClientsMap and IAMClientsMap) originally keyed on region and stsRole alone, omitting the AWS account ID. Because role names are frequently reused across AWS accounts, the cache could return a client/credential scoped to one account when servicing a request for a same-named role in another, and stsRoleForAccount did not reject resolution when no per-account STS configuration existed and the account differed from the configured default. The patch restructures both maps into a three-level key of region → accountID → stsRole, adds an explicit error when no STS config exists for a non-default account, and adds a regression test (TestClientCache) asserting that IAM clients for different accounts are isolated in the cache. The plugin generates AWS credentials derived from IAM policies, which is why a bypass translates into credential exposure and privilege escalation rather than merely an authentication nuisance.

Severity by source

Vendor (github) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 6.8 MEDIUM

Network auth endpoint with attacker-held IAM role gives AV:N/PR:L; AC:H because a trusted/untrusted role-name collision must exist outside attacker control; C:H/I:H from secret access, A:N.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

OpenBao's AWS Plugin generates AWS access credentials based on IAM policies. Prior to version 0.1.1, the AWS Plugin is vulnerable to cross-account IAM role Impersonation in the AWS auth method. The vulnerability allows an IAM role from an untrusted AWS account to authenticate by impersonating a role with the same name in a trusted account, leading to unauthorized access. This impacts all users of the auth-aws plugin who operate in a multi-account AWS environment where IAM role names may not be unique across accounts. This vulnerability has been patched in version 0.1.1 of the auth-aws plugin. A workaround for this issue involves guaranteeing that IAM role names are unique across all AWS accounts that could potentially interact with your OpenBao environment, and to audit for any duplicate IAM roles.

Executive ViewAI

Why It Matters

OpenBao's AWS authentication plugin (auth-aws, versions through 0.1.0) can grant an attacker access to secrets and privileged data by impersonating a trusted IAM role when role names collide across AWS accounts. Only organizations running OpenBao across multiple AWS accounts with non-unique IAM role names are exposed, and exploitation requires the attacker to already hold credentials in an untrusted account. Because the plugin brokers access to secrets and elevated privileges, a successful abuse could expose sensitive data and undermine the trust boundary between AWS accounts, so leadership should treat remediation as a near-term priority for affected deployments.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
emerging OpenBao Vault fork, limited production adoption; AWS plugin subset
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

cpe:2.3:a:openbao:aws_plugin:*:*:*:*:*:*:*:*
CVE-2024-2048 CRITICAL
9.8 Mar 04

Vault and Vault Enterprise (“Vault”) TLS certificate auth method did not correctly validate client certificates when con

CVE-2026-63132 CRITICAL
9.2 Sep 22

Timing-based leakage of the single recovery token in OpenBao lets a remote, unauthenticated attacker who can reach the i

CVE-2025-54997 CRITICAL
9.1 Aug 09

OpenBao exists to provide a software solution to manage, store, and distribute sensitive data including secrets, certifi

CVE-2024-7594 HIGH
8.8 Sep 26

Vault’s SSH secrets engine did not require the valid_principals list to contain a value by default. Rated high severity

CVE-2026-126309 HIGH
7.6 Nov 13

Transit key import in OpenBao before 2.6.5 and 2.7.0 through 2.7.1 lets an authenticated attacker who is restricted by a

CVE-2026-126312 HIGH
7.6 Nov 13

Authenticated OpenBao clients can evade ACL deny rules protecting AppRole (Role IDs), Cert Auth (CRLs), LDAP Auth (group

CVE-2026-115365 HIGH
7.5 Oct 22

Cross-namespace privilege escalation in OpenBao 2.3.0 through 2.6.2 allows an authenticated token holder to attach speci

CVE-2026-71543 HIGH
7.5 Sep 21

OpenBao versions prior to 2.6.0 fail to reject syntax-significant characters when templated identity data is substituted

CVE-2025-59043 HIGH
7.5

Unauthenticated denial of service in OpenBao 2.4.0 and earlier allows remote attackers to crash the server or exhaust CP

CVE-2025-64761 HIGH
7.5 Nov 25

OpenBao is an open source identity-based secrets management system. Rated high severity (CVSS 7.5), this vulnerability i

CVE-2025-52894 HIGH
7.5 Jun 25

OpenBao versions before 2.3.0 contain an unauthenticated denial-of-service vulnerability in the root rekey and recovery

CVE-2024-8185 HIGH
7.5 Oct 31

Vault Community and Vault Enterprise (“Vault”) clusters using Vault’s Integrated Storage backend are vulnerable to a den

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy