PT-2025-28662 · Unknown · Mcp-Server-Kubernetes
Dellalibera
·
Published
2025-06-29
·
Updated
2025-07-09
·
CVE-2025-53355
CVSS v2.0
7.6
High
| Vector | AV:N/AC:H/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions:
MCP Server Kubernetes versions prior to 2.5.0
Description:
MCP Server Kubernetes is vulnerable to a command injection issue due to the unsanitized use of input parameters within a call to
child process.execSync. This allows an attacker to inject arbitrary system commands, potentially leading to remote code execution with the privileges of the server process. The vulnerability exists because the server constructs and executes shell commands using unvalidated user input directly within command-line strings, introducing the possibility of shell metacharacter injection. The vulnerability can be exploited through indirect prompt injection via pod logs or by directly crafting malicious input to the kubectl scale tool.Recommendations:
MCP Server Kubernetes versions prior to 2.5.0: Upgrade to version 2.5.0 or later to resolve this vulnerability. As a temporary workaround, avoid using
child process.execSync with untrusted input. Consider using child process.execFileSync instead, which allows passing arguments as a separate array, avoiding shell interpretation.Exploit
Fix
RCE
Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Mcp-Server-Kubernetes