RCE in Kubeai
CVE-2026-34940
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.
Vulnerability class: Command Injection (OS Command Injection)
EPSS: 0.004 (37.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.7 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N.
Affected products
- Kubeai
- Kubeai-project Kubeai — versions < 0.23.2
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Mitigation, Vendor Advisory)
Frequently asked questions
- What is CVE-2026-34940?
- CVE-2026-34940 is a high-severity vulnerability in Kubeai, classified under OS Command Injection. CVSS score: 8.7/10. Published 2026-04-06.
- How severe is CVE-2026-34940?
- High severity. CVSS v3 base score is 8.7 out of 10.
- Is CVE-2026-34940 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.