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

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-01T23:22:43.000Z
- Modified: 2026-06-17T10:39:51.270Z
- Also known as: GHSA-324q-cwx9-7crr, GO-2026-4920
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- kubeai-project kubeai: < 0.23.2
- github.com/kubeai-project/kubeai (Go): before 0.23.2
- kubeai kubeai: before 0.23.2

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/kubeai-project/kubeai/security/advisories/GHSA-324q-cwx9-7crr> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34940> (advisory)
- <https://github.com/kubeai-project/kubeai> (package)

## Sources

- CVE List: [CVE-2026-34940](https://www.cve.org/CVERecord?id=CVE-2026-34940), CVE Terms of Use, modified 2026-04-16
- GitHub Advisory Database: [GHSA-324q-cwx9-7crr](https://github.com/advisories/GHSA-324q-cwx9-7crr), CC-BY-4.0, modified 2026-04-15
- Go Vulnerability Database: [GO-2026-4920](https://pkg.go.dev/vuln/GO-2026-4920), CC-BY-4.0, modified 2026-04-06
- NVD: [CVE-2026-34940](https://nvd.nist.gov/vuln/detail/CVE-2026-34940), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-34940 · Whole record: https://cve.day/CVE-2026-34940.json · Rebuilt by cve.day 2026-11-25T22:59:18.025Z
