Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as read-only viewer role
-
DeliveryCall terminal v1alpha2 file download endpoint
-
ExploitInject shell metacharacters in path parameter
-
ExecutionBypass missing pods/exec authorization check
-
PersistCommand concatenated into sh -c tar
-
ImpactExecute arbitrary commands in target container
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated KubeSphere account (PR:L) holding at minimum pod get permission; the built-in read-only project-viewer, workspace-viewer and cluster-viewer roles explicitly satisfy this, so no privileged or pod-exec rights are needed. The attacker must reach the terminal v1alpha2 file download endpoint over the network and supply shell metacharacters in the path query parameter, which is inserted via fmt.Sprintf into an sh -c tar command run inside a target container; a viewable container must exist to execute against. Affected deployments are KubeSphere 4.0.0 through 4.1.3. Limiting factors: an account (even read-only) is required rather than fully unauthenticated access, and the target container must be one the account is authorized to view - but because default viewer roles qualify, the practical barrier is low. |
| Impact | This is a genuine priority, not a high-CVSS-but-low-real-risk issue, though it falls short of emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) describes network-reachable, low-complexity exploitation requiring only low privileges, with high confidentiality, integrity and availability impact on the vulnerable system (VC:H/VI:H/VA:H). The critical real-world signal is the authorization design: the description states that the DownloadFile handler skips its own pods/exec check, so accounts holding only pod get permission - including the built-in, read-only project-viewer, workspace-viewer and cluster-viewer roles - gain arbitrary command execution inside any viewable container. That turns ordinary read-only RBAC accounts into container-level RCE, a meaningful privilege escalation that defenders typically assume is safe. Contrasting the signals: the vuln.today decision label is this_week (not act_now/emergency) and the product is not on CISA KEV, so there is no confirmed active exploitation. EPSS is not provided in the input, so probabilistic exploitation likelihood cannot be weighed. A public PoC reference exists but is not verified as working exploit code, so POC availability is a soft signal rather than proof of a reliable weaponized exploit. Net: treat as a near-term patching priority driven by the low privilege bar and the RBAC-bypass design flaw, while recognizing that active exploitation is unconfirmed and EPSS is missing from the data. |
| Exploit ScenarioDerived | An attacker who has obtained any low-privilege KubeSphere account - such as a default read-only project-viewer, workspace-viewer or cluster-viewer - calls the terminal v1alpha2 file download endpoint and places shell metacharacters in the path query parameter, which is concatenated via fmt.Sprintf into an |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Command injection in the KubeSphere terminal v1alpha2 file download endpoint (KubeSphere 4.0.0 through 4.1.3) lets any authenticated user who holds only pod get permission - including the built-in read-only project-viewer, workspace-viewer and cluster-viewer roles - execute arbitrary commands inside any container that account can view. The path query parameter is concatenated via fmt.Sprintf into an sh -c tar command executed inside the target container, and the DownloadFile handler performs no pods/exec authorization check of its own, so pod exec RBAC is effectively bypassed; the practical barrier is low because default viewer roles already satisfy the prerequisite. No confirmed active exploitation (not CISA KEV); a public PoC reference exists but is not verified as working exploit code, and this is prioritised for patching this week rather than treated as an emergency.
RemediationAI
The supplied references do not include an exact fixed KubeSphere version, so confirm the patched build and upgrade instructions in https://github.com/kubesphere/kubesphere/issues/6661 and https://www.vulncheck.com/advisories/kubesphere-command-injection-via-terminal-file-download before treating any release as remediated. Until a fixed build is confirmed, treat every authenticated account as an execution-capable one: audit and temporarily withdraw the built-in project-viewer, workspace-viewer and cluster-viewer roles (and any custom role granting pod get) from users who do not need console file access, accepting that this removes legitimate read-only visibility for those accounts. As a second control, block the terminal v1alpha2 file download route at the ingress, reverse proxy or API gateway layer, or disable the terminal/webshell feature for exposed console instances, with the trade-off that in-browser file download from containers and possibly the terminal itself stop working for all users. Because the injected commands run inside the target container, review container images for unexpected tooling and monitor pod logs and audit records for sh -c tar invocations containing shell metacharacters; note that a public PoC reference exists (though it is not verified as working exploit code), so opportunistic attempts against internet-reachable consoles should be expected this week.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
KubeSphere is a Go-based Kubernetes management platform whose web console exposes a terminal/webshell service under the v1alpha2 API, including a file download endpoint that streams files out of a running container by shelling out inside the pod. In affected builds the request's path query parameter is not escaped before being formatted with fmt.Sprintf into a command string that is executed through sh -c together with tar, so shell metacharacters in the parameter are interpreted by the container's shell and yield arbitrary command execution with the container's privileges. The root cause class is CWE-78 (improper neutralization of special elements used in an OS command), compounded by a broken access-control design: the DownloadFile handler does not perform its own pods/exec authorization check, relying instead on the weaker pod get permission used to locate the target, which means read-only viewer roles grant an execution primitive they were never meant to have. Reachability is over the network to the console API (CVSS 4.0 AV:N/AC:L/AT:N, PR:L, no user interaction), which matches the independently assessed CVSS:3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; the trigger is a crafted path value against a container the caller is authorized to view, and the sources do not describe any further exploitation constraints beyond that required account and viewable workload.
Know when Kubesphere gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable endpoint and simple metacharacter injection give AV:N/AC:L; a low-privilege viewer account is required so PR:L not PR:N; full command execution in the container yields C:H/I:H/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Articles & Coverage 2
Technical POC Analysis
Evidence caveat, read first: the supplied evidence is the researcher's advisory plus working PoC (Ashik Mohamed, 22/07/2026), not a vendor patch diff.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
A high-severity command injection vulnerability in KubeSphere's file download endpoint allows any authenticated user with basic view permissions to execute arbitrary commands in containers across the cluster. This effectively bypasses pod exec RBAC, meaning even read-only users like project-viewers can compromise container integrity, potentially leading to data breaches or lateral movement. Leadership should prioritize remediation due to the low barrier to exploitation and the wide attack surface across default roles.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict network access to the terminal endpoint, implement WAF rules to filter malicious path parameters, monitor container logs for unauthorized command execution, and reduce the scope of viewer roles where possible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
More in Kubesphere
View allPrivilege escalation in KubeSphere 4.0.0 through 4.1.3 allows an authenticated Kubernetes identity that can create Certi
KubeSphere 4.1.3 and earlier ship a git credential verification endpoint that fetches caller-supplied URLs without any a
Server-Side Request Forgery in KubeSphere's multi-cluster controller allows any low-privileged user with Cluster CRD cre
EUVD-2026-135542
GHSA-9v9g-qr72-7pgv
NVD
CVE.org
EPSS
Exploit-DB