{"id":"CVE-2025-59048","aliases":["CVE-2025-59048","GHSA-jp7h-4f3c-9rc7","GO-2025-4067"],"related":[],"kind":"vulnerability","state":"published","title":"OpenBao AWS Plugin Vulnerable to Cross-Account IAM Role Impersonation in AWS Auth Method","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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/)","format":"markdown","source":"ghsa"},{"lang":"en","text":"OpenBao AWS Plugin Vulnerable to Cross-Account IAM Role Impersonation in AWS Auth Method in github.com/openbao/openbao-plugins.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/openbao/openbao-plugins before v0.1.1.","format":"markdown","source":"go"},{"lang":"es","text":"El plugin de AWS de OpenBao genera credenciales de acceso de AWS basándose en políticas de IAM. Antes de la versión 0.1.1, el plugin de AWS es vulnerable a la suplantación de rol de IAM entre cuentas en el método de autenticación de AWS. La vulnerabilidad permite que un rol de IAM de una cuenta de AWS no confiable se autentique suplantando un rol con el mismo nombre en una cuenta confiable, lo que lleva a acceso no autorizado. Esto afecta a todos los usuarios del plugin auth-aws que operan en un entorno de AWS de múltiples cuentas donde los nombres de los roles de IAM pueden no ser únicos entre cuentas. Esta vulnerabilidad ha sido parcheada en la versión 0.1.1 del plugin auth-aws. Una solución alternativa para este problema implica garantizar que los nombres de los roles de IAM sean únicos en todas las cuentas de AWS que podrían interactuar potencialmente con su entorno OpenBao, y auditar cualquier rol de IAM duplicado.","source":"nvd"}],"published":"2025-10-23T15:09:06.574Z","modified":"2026-10-08T11:10:00.250Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-694","CWE-863"],"affected":[{"ranges":[{"version":"< 0.1.1","status":"affected"}],"vendor":"openbao","product":"openbao-plugins","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.1"}],"ecosystem":"Go","package":"github.com/openbao/openbao-plugins","purl":"pkg:golang/github.com/openbao/openbao-plugins","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/openbao/openbao-plugins","purl":"pkg:golang/github.com/openbao/openbao-plugins","source":"go"},{"ranges":[{"status":"affected","fixed":"0.1.1"}],"vendor":"openbao","product":"aws_plugin","cpe":"cpe:2.3:a:openbao:aws_plugin:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openbao/openbao-plugins/security/advisories/GHSA-jp7h-4f3c-9rc7","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/openbao/openbao-plugins/commit/2a77af36834746ca6d3ac9bd1049154c84b3efae","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/openbao/openbao-plugins","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-23T15:40:38.319Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59048","url":"https://www.cve.org/CVERecord?id=CVE-2025-59048","licence":"CVE Terms of Use","modified":"2025-10-23T15:40:48.665Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jp7h-4f3c-9rc7","url":"https://github.com/advisories/GHSA-jp7h-4f3c-9rc7","licence":"CC-BY-4.0","modified":"2025-11-05T19:57:32.120Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4067","url":"https://pkg.go.dev/vuln/GO-2025-4067","licence":"CC-BY-4.0","modified":"2025-11-05T19:57:32.120Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59048","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59048","licence":"Public domain","modified":"2026-10-08T11:10:00.250Z"}],"updatedAt":"2026-11-25T22:59:06.749Z","epss":{"score":0.00272,"percentile":0.20892,"date":"2026-12-01T12:00:22.000Z"}}