RCE in Kubeai
CVE-2026-34940
- CVSS v3
- 8.7 High
- Public exploits
- 1 repository
- EPSS
- 0.005 · 41.2th percentile
- Published
- 2026-04-06
What to do
- Fixed in
0.23.2- Affected
- 2 affected products
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)
Published · last modified .
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.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- High
PR:H - User Interaction
- None
UI:N - Scope
- Changed
S:C - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.005, 41.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Kubeai
- Kubeai-Project Kubeai — versions < 0.23.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- romain-deperne/CVE-2026-34940 (last pushed 2026-09-07): OS command injection in KubeAI via an Ollama model URL — CVE-2026-34940 / CVSS 8.7
References
- https://github.com/kubeai-project/kubeai/security/advisories/GHSA-324q-cwx9-7crr (Exploit, Mitigation, Vendor Advisory)