CVE-2023-22647
JSON

9.9critical

Rancher vulnerable to Privilege Escalation via manipulation of Secrets

Severity
9.9critical CVSS:3.1 by suse
Exploit likelihood
0.79% (higher than 53% of CVEs)
Published
Last changed
Assigned by
suse
Also known as
GHSA-p976-h52c-26p6

Description

An Improper Privilege Management vulnerability in SUSE Rancher allowed standard users to leverage their existing permissions to manipulate Kubernetes secrets in the local cluster, resulting in the secret being deleted, but their read-level permissions to the secret being preserved. When this operation was followed-up by other specially crafted commands, it could result in the user gaining access to tokens belonging to service accounts in the local cluster. This issue affects Rancher: from >= 2.6.0 before < 2.6.13, from >= 2.7.0 before < 2.7.4.

Affected

Product or packageVersionsReported by
SUSE Rancherfrom >= 2.6.0 before < 2.6.13, from >= 2.7.0 before < 2.7.4, from 2.6.0 before 2.6.13, from 2.7.0 before 2.7.4CVE List, NVD
github.com/rancher/rancher (Go)from 2.6.0 before 2.6.13, from 2.7.0 before 2.7.4GitHub Advisory Database

All scores

suse9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHub9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
NVD8.0high CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-267CWE-269

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

What each source says

CVE List

An Improper Privilege Management vulnerability in SUSE Rancher allowed standard users to leverage their existing permissions to manipulate Kubernetes secrets in the local cluster, resulting in the secret being deleted, but their read-level permissions to the secret being preserved. When this operation was followed-up by other specially crafted commands, it could result in the user gaining access to tokens belonging to service accounts in the local cluster. This issue affects Rancher: from >= 2.6.0 before < 2.6.13, from >= 2.7.0 before < 2.7.4.

GitHub Advisory Database
Impact

A vulnerability has been identified which enables Standard users or above to elevate their permissions to Administrator in the local cluster.

The local cluster means the cluster where Rancher is installed. It is named local inside the list of clusters in the Rancher UI.

Standard users could leverage their existing permissions to manipulate Kubernetes secrets in the local cluster, resulting in the secret being deleted, but their read-level permissions to the secret being preserved. When this operation was followed-up by other specially crafted commands, it could result in the user gaining access to tokens belonging to service accounts in the local cluster.

Users that have custom global roles which grant create and delete permissions on secrets would also be able to exploit this vulnerability.

Users with audit logs enabled in Rancher can try to identify possible abuses of this issue by going through the logs. To sieve through the data filter by kind: Secret with type: provisioning.cattle.io/cloud-credential, then investigate all log entries that affect that specific resource. A secondary check would be to filter by all operations with Opaque Secrets within the cattle-global-data namespace.

After patching, it is recommended that users review access methods to Rancher (including RBAC policies, tokens, and host-level node access), to ensure that no changes were made to persist access to users who have leveraged this vulnerability.

Patches

Patched versions include releases 2.6.13, 2.7.4 and later versions.

Workarounds

There is no direct mitigation besides updating Rancher to a patched version.

For more information

If you have any questions or comments about this advisory:

NVD (es)

Una vulnerabilidad de gestión de privilegios inadecuada en SUSE Rancher permitió a usuarios estándar aprovechar sus permisos existentes para manipular secretos de Kubernetes en el clúster local, lo que resultó en la eliminación del secreto, pero sus permisos de nivel de lectura sobre el secreto se conservaron. Cuando esta operación fue seguida por otros comandos especialmente diseñados, podría resultar en que el usuario obtuviera acceso a tokens pertenecientes a cuentas de servicio en el clúster local. Este problema afecta a Rancher: desde >= 2.6.0 antes de anterior a 2.6.13, desde >= 2.7.0 antes de anterior a 2.7.4.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-22647 changed 2025-01-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-p976-h52c-26p6 changed 2026-07-08CC-BY-4.0
NVDCVE-2023-22647 changed 2026-10-23Public domain