highCVSS 8.7NVD status: Modified

CVE-2026-34940

Ollama: KubeAI is an AI inference operator for kubernetes.

ComponentOllama
Severityhigh (CVSS 8.7)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
Published (NVD)2026-04-06
Last modified2026-06-17
Affected versions
kubeai < 0.23.2
Fixed in0.23.2
WeaknessCWE-78
CISA KEVnot listed

NVD 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.

Does CVE-2026-34940 hit the version you run?Paste your docker-compose.yml, requirements.txt or package.json. The scanner checks your pinned versions against this CVE and every other one we track for Ollama.
Check my stack

What to do

  • Upgrade Ollama to 0.23.2 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Read more

Other Ollama CVEs

All Ollama CVEs