CVE-2026-34940: KubeAI is an AI inference operator for kubernetes
CVE-2026-34940 is a high-severity flaw (CVSS 8.7) affecting kubeai. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 insid
Why this priority
- High severity
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.7 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | High |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 61%) |
| CISA exploited list | No |
| Weakness | CWE-78 |
| Published | 2026-04-06 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-34940?
kubeai: upgrade to 0.23.2. Exact commands for each OS are on this page.
Is CVE-2026-34940 being exploited?
CVE-2026-34940 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-34940 affect?
CVE-2026-34940 affects kubeai. Severity is high (CVSS 8.7). 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 componen
How urgent is CVE-2026-34940?
Priority 50/100. High severity; Public exploit reference; On your watchlist