Skip to content
HighVulnerability

CVE-2026-34940: KubeAI command injection via Model resource URL in Ollama startup probe

Identifier
CVE-2026-34940
Published
Record updated
View JSON
Affected
  • github.com/kubeai-project/kubeai <= 0.23.1
Fixed in
0.23.2
  • released March 31, 2026, 6 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

KubeAI, an AI inference operator for Kubernetes, is affected by CVE-2026-34940 in versions prior to 0.23.2. The ollamaStartupProbeScript() function in internal/modelcontroller/engine_ollama.go builds a shell command with fmt.Sprintf using unsanitized model URL components (ref, modelParam), and that command runs 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.

Mitigation

Fixed in 0.23.2.