Skip to content

CVE-2026-34940 KubeAI has an OS Command Injection via Model URL in Ollama Engine startup probe allows arbitrary command execution in model pods

HighCVSS 8.8 EPSS 0.47%
Published
Updated
Exploit status
No public exploit known

Description

KubeAI is an AI inference operator for kubernetes. Prior to 0.23.2, the ollamaStartupProbeScript() function in internal/modelcontroller/engine_ollama.go constructs a shell command string using fmt.Sprintf with unsanitized model URL components (ref, modelParam). This shell command is executed via bash -c as a Kubernetes startup probe. An attacker who can create or update Model custom resources can inject arbitrary shell commands that execute inside model server pods. This vulnerability is fixed in 0.23.2.

Affected products

ProductAffected versionsFixed in
kubeai-project kubeai = < 0.23.2 No fix listed
kubeai-project kubeai(Go) < 0.23.2 0.23.2
kubeai-project kubeai(Go) <= 0.23.1 No fix listed
kubeai < 0.23.2 0.23.2

References