Improper Preservation of Permissions Affecting github.com/rancher/rancher package, versions >=2.6.0 <2.6.13>=2.7.0 <2.7.4


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMRANCHERRANCHER-5664727
  • published2 Jun 2023
  • disclosed2 Jun 2023
  • creditUnknown

Introduced: 2 Jun 2023

CVE-2023-22647  (opens in a new tab)
CWE-281  (opens in a new tab)

How to fix?

Upgrade github.com/rancher/rancher to version 2.6.13, 2.7.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Preservation of Permissions allowing 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.

Note:

When this operation is followed-up by other specially crafted commands, it can result in the user gaining access to tokens belonging to service accounts in the local cluster.

IoC

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 users can filter by kind: Secret with type: provisioning.cattle.io/cloud-credential, and 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.

CVSS Scores

version 3.1