HighVulnerability
CVE-2026-34940: KubeAI command injection via Model resource URL in Ollama startup probe
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-34940
- Published
- Record updated
- Affected
- github.com/kubeai-project/kubeai <= 0.23.1
- Fixed in
- 0.23.2
- released March 31, 2026, 6 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.5%
Summary
KubeAI, an AI inference operator for Kubernetes, is affected by CVE-2026-34940 in versions prior to 0.23.2. The ollamaStartupProbeScript() function in internal/modelcontroller/engine_ollama.go builds a shell command with fmt.Sprintf using unsanitized model URL components (ref, modelParam), and that command runs 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.
Mitigation
Fixed in 0.23.2.
Related items
- HighCVE-2026-134827: Lightdash credential exposure via dbt host_domain settingSimilar attack · NVD/CVE Database
- HighCVE-2026-134172: audio-separator insecure deserialization of malicious Demucs model filesSimilar attack · NVD/CVE Database
- MediumCVE-2026-133836: hankcs HanLP deserialization via model_file in RNNLanguageModelSimilar attack · NVD/CVE Database
- MediumCVE-2026-128136: NLTK pickle loading lets crafted models read or truncate local filesSimilar attack · NVD/CVE Database
- HighCVE-2026-76818: Axon rtkx bootstrap runs unverified downloaded binarySimilar attack · NVD/CVE Database