Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/openbao/openbao-plugins
  4. ›
  5. CVE-2025-59048

CVE-2025-59048: OpenBao AWS Plugin Vulnerable to Cross-Account IAM Role Impersonation in AWS Auth Method

October 23, 2025

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.

References

  • github.com/advisories/GHSA-jp7h-4f3c-9rc7
  • github.com/openbao/openbao-plugins
  • github.com/openbao/openbao-plugins/commit/2a77af36834746ca6d3ac9bd1049154c84b3efae
  • github.com/openbao/openbao-plugins/security/advisories/GHSA-jp7h-4f3c-9rc7
  • nvd.nist.gov/vuln/detail/CVE-2025-59048

Code Behaviors & Features

Detect and mitigate CVE-2025-59048 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.1.1

Fixed versions

  • 0.1.1

Solution

Upgrade to version 0.1.1 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-694: Use of Multiple Resources with Duplicate Identifier
  • CWE-863: Incorrect Authorization

Source file

go/github.com/openbao/openbao-plugins/CVE-2025-59048.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 26 Oct 2025 00:19:48 +0000.