{"answers":{"affected":"3 open source packages ship an affected version, including github.com/clusternet/clusternet. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-30622 in the wild and no public exploit code.","fix":"Upgrade github.com/clusternet/clusternet to 0.15.2 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2023-30622 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2023-30622 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/clusternet/clusternet (Go): affected all versions; fixed in 0.15.2\n- github.com/clusternet/clusternet (Go): affected all versions; fixed in 0.15.2\n- github.com/clusternet/clusternet (Go): affected all versions; fixed in 0.15.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-30622/ (Markdown: https://insights.sbomify.com/CVE-2023-30622/index.md)","id":"CVE-2023-30622","markdown":"https://insights.sbomify.com/CVE-2023-30622/index.md","name":"CVE-2023-30622","record":{"aliases":["GHSA-833c-xh79-p429","GO-2023-1735"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Kubernetes cluster management","requires_auth":"high_privilege","summary":"Attackers with worker node access can escalate privileges to cluster-admin via overly permissive service account permissions in Clusternet.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"clusternet","vendor":"clusternet"}],"cvss":{"score":6.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Clusternet has potential risk which can be leveraged to make a cluster-level privilege escalation","id":"CVE-2023-30622","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2023"},"n_packages":3,"n_references":2,"next":{"headline":"Arbitrary command injection in embano1/wip","id":"CVE-2023-30623"},"packages":[{"ecosystem":"Go","fixed":["0.15.2"],"introduced":["0"],"last_affected":[],"package":"github.com/clusternet/clusternet","purl":null,"source":"GHSA-833c-xh79-p429"},{"ecosystem":"Go","fixed":["0.15.2"],"introduced":["0"],"last_affected":[],"package":"github.com/clusternet/clusternet","purl":"pkg:golang/github.com/clusternet/clusternet","source":"GHSA-833c-xh79-p429"},{"ecosystem":"Go","fixed":["0.15.2"],"introduced":["0"],"last_affected":[],"package":"github.com/clusternet/clusternet","purl":"pkg:golang/github.com/clusternet/clusternet","source":"GO-2023-1735"}],"prev":{"headline":"OS command injection in Gipsy","id":"CVE-2023-30621"},"products":["clusternet"],"published":"2023-04-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-04","vendors":["clusternet"]},"summary":"Attackers with worker node access can escalate privileges to cluster-admin via overly permissive service account permissions in Clusternet.","url":"https://insights.sbomify.com/CVE-2023-30622/"}