KubeAI
KubeAI has an OS Command Injection via Model URL in Ollama Engine startup probe allows arbitrary command execution in model pods
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.23.2
Fixed in 0.23.2
Mitigation
Upgrade kubeai to 0.23.2 or later.
References
- Vendor advisory github.com/kubeai-project/kubeai/security/advi…
Timeline
Days relative to CVE publicationFirst public PoC 23 days after publication; not in CISA KEV. First PoC: romain-deperne/CVE-2026-34940 (created 29 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| romain-deperne/CVE-2026-34940 | 29 Apr 2026 +23 d | 0 | PoC via PoC Index
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.