Privilege Escalation Affecting github.com/clusternet/clusternet/pkg/controllers/clusters/clusterlifecycle/discovery package, versions <0.15.2


Severity

Recommended
0.0
medium
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-GITHUBCOMCLUSTERNETCLUSTERNETPKGCONTROLLERSCLUSTERSCLUSTERLIFECYCLEDISCOVERY-5457853
  • published23 Apr 2023
  • disclosed21 Apr 2023
  • credityounaman

Introduced: 21 Apr 2023

CVE-2023-30622  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade github.com/clusternet/clusternet/pkg/controllers/clusters/clusterlifecycle/discovery to version 0.15.2 or higher.

Overview

github.com/clusternet/clusternet/pkg/controllers/clusters/clusterlifecycle/discovery is a managing your Kubernetes clusters (including public, private, edge, etc.) as easily as visiting the Internet.

Affected versions of this package are vulnerable to Privilege Escalation due to a deployment called cluster-hub inside the clusternet-system Kubernetes namespace, which runs on worker nodes randomly. The deployment has a service account called clusternet-hub, which has a cluster role called clusternet:hub via cluster role binding. The clusternet:hub cluster role has * verbs of *.* resources. Thus, if a malicious user can access the worker node which runs the clusternet, they can leverage the service account to take malicious actions on critical system resources.

CVSS Scores

version 3.1