Skip to content
MediumVulnerability

CVE-2025-66404: MCP Server Kubernetes command injection in exec_in_pod tool

Identifier
CVE-2025-66404
Published
Record updated
View JSON
Affected
  • mcp-server-kubernetes <= 2.9.7
Fixed in
2.9.8
  • released November 30, 2025, 2 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.5%

Summary

CVE-2025-66404 affects the exec_in_pod tool in mcp-server-kubernetes, an MCP Server that connects to and manages Kubernetes clusters, in versions prior to 2.9.8. When the tool receives a command as a string, it is passed directly to sh -c without input validation, so shell metacharacters are interpreted. Exploitation can occur through direct command injection or through indirect prompt injection, where AI agents may run commands without explicit user intent.

Mitigation

Fixed in 2.9.8.