{"id":"CVE-2026-34940","published":"2026-04-06T15:49:06Z","modified":"2026-04-16T13:45:47Z","title":"KubeAI has an OS Command Injection via Model URL in Ollama Engine startup probe allows arbitrary command execution in…","vendor":"kubeai-project","product":"kubeai","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00476,"percentile":0.41946,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/kubeai-project/kubeai/security/advisories/GHSA-324q-cwx9-7crr","tags":["x_refsource_CONFIRM"]}],"priority":{"score":19.5,"factors":[{"name":"EPSS percentile","points":8.39},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.09}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-04-29","earliestUrl":"https://github.com/romain-deperne/CVE-2026-34940","repos":[{"name":"romain-deperne/CVE-2026-34940","url":"https://github.com/romain-deperne/CVE-2026-34940","stars":0,"created":"2026-04-29"}]},"first":{"date":"2026-04-29","source":"PoC-in-GitHub","url":"https://github.com/romain-deperne/CVE-2026-34940"},"provenance":"source"},"vendorSlug":"kubeai-project","affectedVersions":[{"vendor":"kubeai-project","product":"kubeai","versions":["< 0.23.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-16T13:45:38.794191Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/kubeai-project/kubeai","vulnerableRanges":["<0.23.2"],"patched":["0.23.2"],"from":["GHSA-324q-cwx9-7crr","GO-2026-4920"],"provenance":"source"}],"summary":{"text":"KubeAI, an AI inference operator for Kubernetes, has an OS command injection flaw in the ollamaStartupProbeScript() function of its Ollama engine code (internal/modelcontroller/engine_ollama.go), where unsanitized model URL components are concatenated into a shell command run as a startup probe. An attacker who can create or update Model custom resources can inject arbitrary shell commands that execute inside model server pods, with no user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:16Z"},"euvd":{"id":"EUVD-2026-19355","exploited":false,"provenance":"source"}}