Skip to main content

KubeSphere CVE-2026-73517

| EUVDEUVD-2026-135542 HIGH
OS Command Injection (CWE-78)
2026-11-25 VulnCheck GHSA-9v9g-qr72-7pgv
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as read-only viewer role
  2. Delivery
    Call terminal v1alpha2 file download endpoint
  3. Exploit
    Inject shell metacharacters in path parameter
  4. Execution
    Bypass missing pods/exec authorization check
  5. Persist
    Command concatenated into sh -c tar
  6. Impact
    Execute 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 sh -c tar command run inside a target container. Because the DownloadFile handler never performs the pods/exec authorization check, the injected commands execute in any container the account can view, without the attacker holding pod exec rights. A public PoC reference exists but is not verified as working exploit code; exploitation leverages the network attack vector and low complexity indicated by the CVSS vector.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) No patch listed yet 1.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

KubeSphere 4.0.0 ≤4.1.3

Affected Packages

euvd kubesphere no fix

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
1.9%
Top 20% exploitable
Prevalence
Medium
popular open-source Kubernetes management platform, common but not universally deployed
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 1.9%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy