CVE-2026-41053
JSON

8.8high

Over-inclusive team membership expansion in GitHub App authentication provider for Rancher

Severity
8.8high CVSS:3.1 by suse
Exploit likelihood
0.45% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
suse
Also known as
GHSA-4j6x-2764-m8ghGO-2026-5869

Description

Incorrect authentication caching in the team member ship expansion of the Rancher Github authentication provider caused it granting principal access to any logged in user, in 2.13 before 2.13.6 and 2.14 before 2.14.2.

Affected

Product or packageVersionsReported by
Rancherfrom 2.14.0 before 2.14.2, from 2.13.0 before 2.13.6CVE List
github.com/rancher/rancher (Go)from 2.14.0 before 2.14.2, from 2.13.0 before 2.13.6, before 0.0.0-20260519172014-d0c047bbc6d2GitHub Advisory Database, Go Vulnerability Database
suse rancherfrom 2.13.0 before 2.13.6, from 2.14.0 before 2.14.2NVD

All scores

suse8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-303

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Incorrect authentication caching in the team member ship expansion of the Rancher Github authentication provider caused it granting principal access to any logged in user, in 2.13 before 2.13.6 and 2.14 before 2.14.2.

GitHub Advisory Database
Impact

A vulnerability has been identified within Rancher Manager in the GitHub App authentication provider. When evaluating permissions, the provider incorrectly expands user team memberships to include all teams within the associated GitHub organization, rather than restricting access to the specific teams to which the user actually belongs.

Specifically, when a user authenticates via the GitHub App provider, Rancher's team membership evaluation logic incorrectly handles cached data. Instead of checking the user-specific list, the evaluation logic iterates over all teams defined within the entire GitHub organization. The authentication provider should consult the correctly cached, per-user membership list to assign the user's specific group permissions. Consequently, any authenticated user who belongs to at least one team in a GitHub organization is mistakenly granted group principals for every team within that entire organization during authentication and authorization checks.

This issue allows a malicious user who is a member of a low-privilege team within a GitHub organization to gain unauthorized access to or permissions for any other team in that organization. If those other teams are bound to Rancher login allowlists or RBAC roles (cluster-level, project-level, or global), the attacker can pass access checks that should otherwise fail, inheriting permissions they were never granted.

Exploitation of this vulnerability requires the following conditions to be met:

  • The GitHub App authentication provider must be enabled and configured for the target GitHub organization.
  • The attacker must possess a valid GitHub account with membership in at least one team within that target organization.
  • A separate team within the same GitHub organization must be explicitly mapped to Rancher RBAC roles or specified within Rancher's login allowlist (allowedPrincipalIds).

Please consult the associated MITRE ATT&CK - Technique - Valid Accounts for further information about this category of attack.

Patches

This fix corrects the team listing logic to iterate only the teams stored in the per-user membership cache and includes a one-time startup migration that marks all affected User resources for refresh, forcing Rancher to rebuild group principals using the now-corrected logic.

Patched versions of Rancher include releases v2.14.2 and v2.13.6.

Workarounds

If upgrading to a patched version immediately is not feasible, users are encouraged to consider these temporary mitigations:

  • Disable GitHub App authentication provider and switch to an alternative authentication provider (GitHub OAuth).
  • Remove or restrict team-based group principals from allowed principalIds.
  • Audit and temporarily remove RBAC bindings (GlobalRoleBindings, ClusterRoleTemplateBindings, ProjectRoleTemplateBindings) that reference GitHub App team principals until the patch is applied.
  • Disable provider refresh and clean up inflated group membership for users (manually or by writing a script).

These workarounds reduce the attack surface but do not eliminate the vulnerability. Existing user sessions and cached principals remain inflated until a provider refresh occurs. Upgrading to a patched version is strongly recommended.

References

If you have any questions or comments about this advisory:

Go Vulnerability Database

Rancher has over-inclusive team membership expansion in GitHub App authentication provider in github.com/rancher/rancher.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: github.com/rancher/rancher from v2.13.0 before v2.13.6, from v2.14.0 before v2.14.2.

NVD (es)

El almacenamiento en caché incorrecto de la autenticación en la expansión de la membresía del equipo del proveedor de autenticación de Rancher Github causó que otorgara acceso principal a cualquier usuario que haya iniciado sesión, en 2.13 antes de 2.13.6 y 2.14 antes de 2.14.2.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-41053 changed 2026-07-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-4j6x-2764-m8gh changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5869 changed 2026-07-22CC-BY-4.0
NVDCVE-2026-41053 changed 2026-10-25Public domain