mcp-server-kubernetes before 4.2.0 Argument Injection via Flag-Shaped Positional Operands
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 22, 2026
- Updated
- Nov 23, 2026
- Reserved
- Nov 22, 2026
Description
mcp-server-kubernetes before 4.2.0 contains an argument injection vulnerability that allows remote MCP clients to inject kubectl flags by supplying dash-prefixed values as positional operands in tools such as exec_in_pod, kubectl_patch, and kubectl_logs. Attackers connected over SSE or Streamable HTTP transport can supply values like --filename to make kubectl read files from the server host, bypassing file-read restrictions.
| Product | Versions |
|---|---|
| mcp-server-kubernetes Flux159 | before 4.2.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.1 High | VulnCheck | |
| 3.1 | 7.1 High | VulnCheck |
Weaknesses
- CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
- https://github.com/Flux159/mcp-server-kubernetes/pull/390PatchIssue Tracker
- https://github.com/Flux159/mcp-server-kubernetes/commit/588d4949b0233974c3966a7d24d532be11e56d0dPatch
- mcp-server-kubernetes v4.2.0 Release NotesRelease Notes
- https://github.com/Flux159/mcp-server-kubernetes/blob/v4.1.9/src/tools/exec_in_pod.ts#L105Technical Details
- VulnCheck Advisory: mcp-server-kubernetes before 4.2.0 Argument Injection via Flag-Shaped Positional OperandsThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.