Security
Headlines
HeadlinesLatestCVEs

Headline

GHSA-jwvr-vv7p-gpwq: Privilege escalation for users with create/update permissions in Global Roles in Rancher

Impact

This vulnerability affects customers who utilize non-admin users that are able to create or edit Global Roles. The most common use case for this scenario is the restricted-admin role.

A flaw was discovered in Rancher versions from 2.5.0 up to and including 2.5.12 and from 2.6.0 up to and including 2.6.3 which allows users who have create or update permissions on Global Roles to escalate their permissions, or those of another user, to admin-level permissions. Global Roles grant users Rancher-wide permissions, such as the ability to create clusters. In the identified versions of Rancher, when users are given permission to edit or create Global Roles, they are not restricted to only granting permissions which they already posses.

The privilege escalation can be taken advantage of in two ways by users with create or update permissions on Global Roles (including the restricted-admin):

  1. Editing the global admin role to make it the default for new users, then creating a new user that will be elevated to the global admin role.
  2. Creating a new global role with permissions already possessed by the restricted-admin, assigning this new role to a user, then modifying the global role to grant additional administrive like permissions ('*') to the elevated user.

Patches

Patched versions include releases 2.5.13, 2.6.4 and later versions.

Workarounds

Limit access in Rancher to trusted users. There is not a direct mitigation besides upgrading to the patched Rancher versions.

Note: If you have users who have create or edit permissions on Global Roles but are not admin users (for example, the restricted-admin), it is highly advised to review the roles and users created by those users for possible privilege escalations.

For more information

If you have any questions or comments about this advisory:

ghsa
#vulnerability#git

Impact

This vulnerability affects customers who utilize non-admin users that are able to create or edit Global Roles. The most common use case for this scenario is the restricted-admin role.

A flaw was discovered in Rancher versions from 2.5.0 up to and including 2.5.12 and from 2.6.0 up to and including 2.6.3 which allows users who have create or update permissions on Global Roles to escalate their permissions, or those of another user, to admin-level permissions. Global Roles grant users Rancher-wide permissions, such as the ability to create clusters. In the identified versions of Rancher, when users are given permission to edit or create Global Roles, they are not restricted to only granting permissions which they already posses.

The privilege escalation can be taken advantage of in two ways by users with create or update permissions on Global Roles (including the restricted-admin):

  1. Editing the global admin role to make it the default for new users, then creating a new user that will be elevated to the global admin role.
  2. Creating a new global role with permissions already possessed by the restricted-admin, assigning this new role to a user, then modifying the global role to grant additional administrive like permissions (‘*’) to the elevated user.

Patches

Patched versions include releases 2.5.13, 2.6.4 and later versions.

Workarounds

Limit access in Rancher to trusted users. There is not a direct mitigation besides upgrading to the patched Rancher versions.

Note: If you have users who have create or edit permissions on Global Roles but are not admin users (for example, the restricted-admin), it is highly advised to review the roles and users created by those users for possible privilege escalations.

For more information

If you have any questions or comments about this advisory:

  • Reach out to SUSE Rancher Security team for security related inquiries.
  • Open an issue in Rancher repository.
  • Verify our support matrix and product support lifecycle.

References

  • GHSA-jwvr-vv7p-gpwq
  • https://github.com/rancher/rancher/releases/tag/v2.5.13
  • https://github.com/rancher/rancher/releases/tag/v2.6.4
  • https://nvd.nist.gov/vuln/detail/CVE-2021-36784
  • https://bugzilla.suse.com/show_bug.cgi?id=1193991

Related news

CVE-2021-42165: Offensive Security’s Exploit Database Archive

MitraStar GPT-2541GNAC-N1 (HGU) 100VNZ0b33 devices allow remote authenticated users to obtain root access by executing command "deviceinfo show file &&/bin/bash" because of incorrect sanitization of parameter "path".

CVE-2021-3643: 1980626 – (CVE-2021-3643) CVE-2021-3643 sox: buffer overflow read vulnerability

A flaw was found in sox 14.4.1. The lsx_adpcm_init function within libsox leads to a global-buffer-overflow. This flaw allows an attacker to input a malicious file, leading to the disclosure of sensitive information.

CVE-2021-36784: Privilege escalation for users with create/update permissions in Global Roles

A Improper Privilege Management vulnerability in SUSE Rancher allows users with the restricted-admin role to escalate to full admin. This issue affects: SUSE Rancher Rancher versions prior to 2.5.13; Rancher versions prior to 2.6.4.