Vulnerabilities in pkg:golang/github.com/openbao/openbao-plugins

PACKAGE
Advisory Identifier: GHSA-jp7h-4f3c-9rc7
Advisory Summary

CVE-2025-59048 is a HIGH (CVSS 8.1) openbao aws plugin vulnerable to vulnerability (CWE-694: Use of Multiple Resources with Duplicate Identifier) affecting Github.com/openbao/openbao plugins libraries in the Go ecosystem. The issue involves openbao aws plugin vulnerable to cross-account iam role impersonation in aws auth method. Remediation is available by upgrading affected packages to version 0.1.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/openbao/openbao-plugins

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/openbao/openbao-plugins. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-jp7h-4f3c-9rc7 CVE-2025-59048 HIGH OpenBao AWS Plugin Vulnerable to Cross-Account IAM Role Impersonation in AWS Auth Method

CVE-2025-59048 at a Glance

CVE Identifier CVE-2025-59048
GHSA Identifier GHSA-jp7h-4f3c-9rc7
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-694: Use of Multiple Resources with Duplicate Identifier
Affected Product Github.com/openbao/openbao plugins
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-59048

To remediate this vulnerability, upgrade all affected Github.com/openbao/openbao plugins dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/openbao/openbao-plugins fixed: 0.1.1
Upgrade github.com/openbao/openbao-plugins to 0.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/openbao/openbao-plugins

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-59048, inspect your project dependencies for Github.com/openbao/openbao plugins:

inspect dependencies for github.com/openbao/openbao-plugins

Analyze the terminal output to locate any version of Github.com/openbao/openbao plugins in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-694: Use of Multiple Resources with Duplicate Identifier, where the product uses multiple resources that can have the same identifier, in a context in which unique identifiers are required. In Github.com/openbao/openbao plugins, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact This is a cross-account impersonation vulnerability in the `auth-aws` plugin. 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. The core of the vulnerability is a flawed caching mechanism that fails to validate the AWS Account ID during authentication. While the use of wildcards in a `bound_iam_principal_arn configuration` significantly increases the attack surface, **wildcards are not a prerequisite for exploitation**. The vulnerability can be exploited with specific ARN bindings if a role name collision occurs. Successful exploitation can lead to unauthorized access to secrets, data exfiltration, and privilege escalation. Given that the only prerequisite is a duplicate role name, the severity is considered **high**. ### Patches This vulnerability has been patched in version **0.1.1** of the `auth-aws` plugin. Users are advised to upgrade to version **0.1.1** or later to remediate this vulnerability. ### Workarounds For users who are unable to upgrade to version **0.1.1** immediately, the most effective workaround is to **guarantee that IAM role names are unique across all AWS accounts** that could potentially interact with your OpenBao environment. This is the most critical mitigation step. **Primary Mitigation**: Audit your AWS organizations to identify and rename any duplicate IAM role names. Enforce a naming convention that includes account-specific identifiers to prevent future collisions. While removing wildcards from your `bound_iam_principal_arn` configuration is still recommended as a security best practice, it **will not** mitigate this vulnerability if duplicate role names exist. ### Credits This vulnerability was discovered and reported by [Pavlos Karakalidis](https://github.com/pkarakal/)

CVE-2025-59048 Affected Github.com/openbao/openbao plugins Versions

1 component(s)
Fixed Versions:
0.1.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openbao/openbao-plugins
Go
< 0.1.1
0.1.1

References

Frequently Asked Questions

What is CVE-2025-59048?
CVE-2025-59048 is a security vulnerability in Github.com/openbao/openbao plugins involving OpenBao AWS Plugin Vulnerable to Cross-Account IAM Role Impersonation in AWS Auth Method under CWE-694: Use of Multiple Resources with Duplicate Identifier.
Which Github.com/openbao/openbao plugins versions are affected?
Affected versions include releases prior to 0.1.1 across affected packages: github.com/openbao/openbao-plugins.
What version fixes CVE-2025-59048?
Upgrading to 0.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openbao/openbao-plugins affected?
Yes, github.com/openbao/openbao-plugins is affected in releases prior to 0.1.1. Upgrade your dependency to 0.1.1 or later.
What is the CVSS score of CVE-2025-59048?
CVE-2025-59048 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2025-59048?
CVE-2025-59048 is classified under CWE-694: Use of Multiple Resources with Duplicate Identifier (The product uses multiple resources that can have the same identifier, in a context in which unique identifiers are required.).
How can I check Go dependencies for CVE-2025-59048?
Run the dependency tree command: 'inspect dependencies for github.com/openbao/openbao-plugins'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jp7h-4f3c-9rc7",
  "modified" : "2025-10-23T16:01:27Z",
  "published" : "2025-10-23T16:01:27Z",
  "aliases" : [ "CVE-2025-59048" ],
  "summary" : "OpenBao AWS Plugin Vulnerable to Cross-Account IAM Role Impersonation in AWS Auth Method",
  "details" : "### Impact\nThis is a cross-account impersonation vulnerability in the `auth-aws` plugin. 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.\n\nThis 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.\n\nThe core of the vulnerability is a flawed caching mechanism that fails to validate the AWS Account ID during authentication. While the use of wildcards in a `bound_iam_principal_arn configuration` significantly increases the attack surface, **wildcards are not a prerequisite for exploitation**. The vulnerability can be exploited with specific ARN bindings if a role name collision occurs.\n\nSuccessful exploitation can lead to unauthorized access to secrets, data exfiltration, and privilege escalation. Given that the only prerequisite is a duplicate role name, the severity is considered **high**.\n\n### Patches\nThis vulnerability has been patched in version **0.1.1** of the `auth-aws` plugin.\nUsers are advised to upgrade to version **0.1.1** or later to remediate this vulnerability.\n\n### Workarounds\nFor users who are unable to upgrade to version **0.1.1** immediately, the most effective workaround is to **guarantee that IAM role names are unique across all AWS accounts** that could potentially interact with your OpenBao environment. This is the most critical mitigation step.\n\n**Primary Mitigation**: Audit your AWS organizations to identify and rename any duplicate IAM role names. Enforce a naming convention that includes account-specific identifiers to prevent future collisions.\n\nWhile removing wildcards from your `bound_iam_principal_arn` configuration is still recommended as a security best practice, it **will not** mitigate this vulnerability if duplicate role names exist.\n\n### Credits\nThis vulnerability was discovered and reported by [Pavlos Karakalidis](https://github.com/pkarakal/)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openbao/openbao-plugins"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.1.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openbao/openbao-plugins/security/advisories/GHSA-jp7h-4f3c-9rc7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openbao/openbao-plugins/commit/2a77af36834746ca6d3ac9bd1049154c84b3efae"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openbao/openbao-plugins"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-694", "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-23T16:01:27Z",
    "nvd_published_at" : null
  }
}