{"id":"CVE-2025-66404","published":"2025-12-03T20:40:11Z","modified":"2025-12-03T20:54:51Z","title":"mcp-server-kubernetes potential security issue in exec_in_pod tool","vendor":"Flux159","product":"mcp-server-kubernetes","tier":"tail","description":{"text":"MCP Server Kubernetes is an MCP Server that can connect to a Kubernetes cluster and manage it. Prior to 2.9.8, there is a security issue exists in the exec_in_pod tool of the mcp-server-kubernetes MCP Server. The tool accepts user-provided commands in both array and string formats. When a string format is provided, it is passed directly to shell interpretation (sh -c) without input validation, allowing shell metacharacters to be interpreted. This vulnerability can be exploited through direct command injection or indirect prompt injection attacks, where AI agents may execute commands without explicit user intent. This vulnerability is fixed in 2.9.8.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0148,"percentile":0.7455,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-wvxp-jp4w-w8wg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Flux159/mcp-server-kubernetes/commit/d091107ff92d9ffad1b3c295092f142d6578c48b","tags":["x_refsource_MISC"]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":14.91},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"flux159","affectedVersions":[{"vendor":"Flux159","product":"mcp-server-kubernetes","versions":["< 2.9.8"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-12-03T20:52:00.654811Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"mcp-server-kubernetes","vulnerableRanges":["<2.9.8"],"patched":["2.9.8"],"from":["GHSA-wvxp-jp4w-w8wg"],"provenance":"source"}],"summary":{"text":"The exec_in_pod tool in the Flux159 mcp-server-kubernetes MCP Server, which connects to and manages Kubernetes clusters, is vulnerable to command injection because string-format commands are passed unvalidated to sh -c, so shell metacharacters are interpreted. An attacker can exploit this through direct command injection or through indirect prompt injection that causes an AI agent to run commands without explicit user intent, and exploitation requires high attack complexity, high privileges, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:25Z"},"euvd":{"id":"EUVD-2025-201109","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-flux159-mcp-server-kubernetes-cve-2025-53107","children":[{"from":"CVE-2025-66404","to":"CVE-2026-61459","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/tools/exec_in_pod.ts"],"commits":["https://github.com/Flux159/mcp-server-kubernetes/commit/d091107ff92d9ffad1b3c295092f142d6578c48b","https://github.com/Flux159/mcp-server-kubernetes/commit/47d3136dd272c947464524f11f47bb519814698e","https://github.com/Flux159/mcp-server-kubernetes/commit/d7890f50a4567bf5d9842541ba6f41e180227f9a"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-53355","published":"2025-07-08","fixed":"2.5.0","kev":false,"link":{"from":"CVE-2025-53355","to":"CVE-2025-66404","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:mcp-server-kubernetes","fromFixed":"2.5.0","toFixed":"2.9.8","daysApart":148}]}},{"cve":"CVE-2025-66404","published":"2025-12-03","fixed":"2.9.8","kev":false},{"cve":"CVE-2026-39884","published":"2026-04-14","fixed":"3.5.0","kev":false},{"cve":"CVE-2026-46519","published":"2026-06-11","fixed":"3.6.0","kev":false},{"cve":"CVE-2026-47250","published":"2026-06-11","fixed":"3.7.0","kev":false}],"package":"npm:mcp-server-kubernetes"}}