Skip to main content
← All vulnerabilities
CVE-2026-34940GO-2026-4920GHSA-324Q-CWX9-7CRR

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.23.2
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • kubeai-project kubeai

    fixed in 0.23.2

  • github.com/kubeai-project/kubeaiGo

    fixed in 0.23.2

References 2

GitHub · kubeai-project/kubeai

GitHub · romain-deperne/CVE-2026-34940