Shell Command Injection in KubeAI Operator for Kubernetes
CVE-2026-34940
NONE
What is CVE-2026-34940?
The KubeAI operator for Kubernetes exposes a critical security vulnerability due to improper sanitization of model URL components within the ollamaStartupProbeScript() function. Prior to version 0.23.2, this function constructs a shell command using unsanitized inputs, allowing an attacker with permission to create or modify Model custom resources to inject arbitrary shell commands. These commands are executed by the Kubernetes startup probe, posing significant security risks as they can run directly within the model server pods.
Affected Version(s)
kubeai < 0.23.2
