CVE-2023-30622 Clusternet has potential risk which can be leveraged to make a cluster-level privilege escalation

Medium 6.6 Published Updated

Attackers with worker node access can escalate privileges to cluster-admin via overly permissive service account permissions in Clusternet.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-30622?

CVE-2023-30622 is a medium-severity vulnerability in clusternet, published on 24 Apr 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Clusternet is a general-purpose system for controlling Kubernetes clusters across different environments. An issue in clusternet prior to version 0.15.2 can be leveraged to lead to a cluster-level privilege escalation. The clusternet has 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 do malicious actions to critical system resources. For example, the malicious user can leverage the service account to get ALL secrets in the entire cluster, resulting in cluster-level privilege escalation. Version 0.15.2 contains a fix for this issue.

Weakness: CWE-269

Which versions are affected by CVE-2023-30622?

3 open source packages ship an affected version, including github.com/clusternet/clusternet. It affects 1 product.

PackageAffectedFixed in
github.com/clusternet/clusternet GoAll versions0.15.2
github.com/clusternet/clusternet GoAll versions0.15.2
github.com/clusternet/clusternet GoAll versions0.15.2

Products include Clusternet Clusternet.

How do I fix CVE-2023-30622?

Upgrade github.com/clusternet/clusternet to 0.15.2 or later.

Is CVE-2023-30622 being exploited?

There is no known exploitation of CVE-2023-30622 in the wild and no public exploit code.

Sources

Also known as GHSA-833c-xh79-p429, GO-2023-1735.

Is CVE-2023-30622 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free