漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
MCP Server Kubernetes has Argument Injection in its port_forward tool via space-splitting
Vulnerability Description
mcp-server-kubernetes is a Model Context Protocol server for Kubernetes cluster management. Versions 3.4.0 and prior contain an argument injection vulnerability in the port_forward tool in src/tools/port_forward.ts, where a kubectl command is constructed via string concatenation with user-controlled input and then naively split on spaces before being passed to spawn(). Unlike all other tools in the codebase which correctly use array-based argument passing with execFileSync(), port_forward treats every space in user-controlled fields (namespace, resourceType, resourceName, localPort, targetPort) as an argument boundary, allowing an attacker to inject arbitrary kubectl flags. This enables exposure of internal Kubernetes services to the network by injecting --address=0.0.0.0, cross-namespace targeting by injecting additional -n flags, and indirect exploitation via prompt injection against AI agents connected to the MCP server. This issue has been fixed in version 3.5.0.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
Vulnerability Type
参数注入或修改
Vulnerability Title
MCP Server Kubernetes 安全漏洞
Vulnerability Description
MCP Server Kubernetes是Suyog Sonwalkar个人开发者的一个用于kubernetes管理的MCP服务器。 MCP Server Kubernetes 3.4.0及之前版本存在安全漏洞,该漏洞源于port_forward工具中参数注入问题,可能导致暴露内部Kubernetes服务、跨命名空间目标定位或通过AI代理进行间接利用。
CVSS Information
N/A
Vulnerability Type
N/A