CVE-2026-34940
HIGH 8.8CVSS 3.1KubeAI: 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.
- Published
- 6 Apr 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-324q-cwx9-7crrGO-2026-4920
- Sources
- NVDJSONOSV GHSA-324q-cwx9-7crrJSONOSV GO-2026-4920JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | kubeai | kubeaicpe:2.3:a:kubeai:kubeai:*:*:*:*:*:kubernetes:*:* |
< 0.23.2 | 0.23.2 |
| OSV | Go | github.com/kubeai-project/kubeai | < 0.23.2 | 0.23.2 |
References
- https://github.com/kubeai-project/kubeai/security/advisories/GHSA-324q-cwx9-7crr · Exploit, Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-34940 · ADVISORY
- https://github.com/kubeai-project/kubeai · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 6 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Apr 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Apr 2026)