KubeSphereで閲覧権限のみのユーザーに任意コマンドを実行される脆弱性
Summary
KubeSphere 4.0.0から4.1.3までには、ターミナルのファイルダウンロード機能にコマンドインジェクションの脆弱性があります。Podの取得権限だけを持つ閲覧専用ユーザーでも、閲覧できるコンテナ内で任意のコマンドを実行できる可能性があります。修正版の情報は公表されていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
KubeSphere 4.0.0から4.1.3までには、ターミナルのファイルダウンロード機能にコマンドインジェクションの脆弱性があります。Podの取得権限だけを持つ閲覧専用ユーザーでも、閲覧できるコンテナ内で任意のコマンドを実行できる可能性があります。修正版の情報は公表されていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| kubespherekubesphere |
4.0.0 – 4.1.3→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
KubeSphere 4.0.0 through 4.1.3 contains a command injection vulnerability in the terminal v1alpha2 file download endpoint where the path query parameter is inserted via fmt.Sprintf into sh -c tar commands executed inside the target container, and the DownloadFile handler fails to perform its own pods/exec authorization check. Attackers with only pod get permission, including built-in read-only project-viewer, workspace-viewer and cluster-viewer roles, can supply shell metacharacters in the path parameter to execute arbitrary commands inside any viewable container without holding pod exec permission.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- report github.com
- report github.com
- web github.com