CVEvulnerability
CVE-2026-34940
8.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2026-04-06
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 8.7 HIGH — CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
- CVSS 3.1 ([email protected])
- 8.8 HIGH — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-78
Description
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 configurations
• kubeai kubeai (< 0.23.2)
Related
Weakness · CWE (1)
- CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
References
- https://github.com/kubeai-project/kubeai/security/advisories/GHSA-324q-cwx9-7crr Exploit, Mitigation, Vendor Advisory
- https://github.com/kubeai-project/kubeai/security/advisories/GHSA-324q-cwx9-7crr Exploit, Mitigation, Vendor Advisory