OS command injection in kubeai-project kubeai
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-78.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| kubeai-project | kubeai | before 0.23.2 | 0.23.2 | Patch available | CNA |
| — | github.com/kubeai-project/kubeai (Go) | before 0.23.2 | 0.23.2 | Patch available | GHSA-324q-cwx9-7crr |
- kubeai Vendorkubeai-project Affected before 0.23.2 Fixed in 0.23.2 Patch available CNA
- github.com/kubeai-project/kubeai (Go) Vendor— Affected before 0.23.2 Fixed in 0.23.2 Patch available GHSA-324q-cwx9-7crr
Remediation
- Fix · CNA kubeai (kubeai-project) Fixed in 0.23.2
- Fix · GHSA-324q-cwx9-7crr github.com/kubeai-project/kubeai (Go) Fixed in 0.23.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-34940
- 2026-10-03 Alias added: GHSA-324q-cwx9-7crr
References
Sources
- CVE-2026-34940 · CVE Program
- CVE-2026-34940 · NVD
- FIRST EPSS
- GHSA-324q-cwx9-7crr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences