{"answers":{"affected":"3 open source packages ship an affected version, including github.com/kubeai-project/kubeai. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34940 exists.","fix":"Upgrade github.com/kubeai-project/kubeai to 0.23.2 or later.","what":"CVE-2026-34940 is a high-severity command injection vulnerability in kubeai-project kubeai, published on 6 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-34940 and fix it if it is affected.\n\nWhat it is: CVE-2026-34940 is a high-severity command injection vulnerability in kubeai-project kubeai, published on 6 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34940 exists.\n\nAffected packages and fixed versions:\n- github.com/kubeai-project/kubeai (Go): affected all versions; fixed in 0.23.2\n- github.com/kubeai-project/kubeai (Go): affected all versions; fixed in 0.23.2\n- github.com/kubeai-project/kubeai (Go): affected all versions; fixed in 0.23.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-34940/ (Markdown: https://insights.sbomify.com/CVE-2026-34940/index.md)","id":"CVE-2026-34940","markdown":"https://insights.sbomify.com/CVE-2026-34940/index.md","name":"CVE-2026-34940","record":{"aliases":["GHSA-324q-cwx9-7crr","GO-2026-4920"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes AI operator","requires_auth":"high_privilege","summary":"Attackers can execute arbitrary shell commands in model pods by injecting malicious URLs into KubeAI Model resources.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"kubeai","vendor":"kubeai"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2026-04-29","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-04-29T21:16:39Z","kind":"github_poc","ref":"https://github.com/romain-deperne/CVE-2026-34940","stars":0,"title":"OS command injection in KubeAI via an Ollama model URL — CVE-2026-34940 / CVSS 8.7"}],"tier":"weaponised"},"has_fix":true,"headline":"KubeAI: OS Command Injection via Model URL in Ollama Engine startup probe allows arbitrary command execution in model pods","id":"CVE-2026-34940","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"Wasmtime has a Heap OOB read in component model UTF-16 to latin1+utf16 string transcoding","id":"CVE-2026-34941"},"packages":[{"ecosystem":"Go","fixed":["0.23.2"],"introduced":["0"],"last_affected":[],"package":"github.com/kubeai-project/kubeai","purl":null,"source":"GHSA-324q-cwx9-7crr"},{"ecosystem":"Go","fixed":["0.23.2"],"introduced":["0"],"last_affected":[],"package":"github.com/kubeai-project/kubeai","purl":"pkg:golang/github.com/kubeai-project/kubeai","source":"GHSA-324q-cwx9-7crr"},{"ecosystem":"Go","fixed":["0.23.2"],"introduced":["0"],"last_affected":[],"package":"github.com/kubeai-project/kubeai","purl":"pkg:golang/github.com/kubeai-project/kubeai","source":"GO-2026-4920"}],"prev":{"headline":"PraisonAI: ReDoS via Unvalidated User-Controlled Regex in MCPToolIndex.search_tools()","id":"CVE-2026-34939"},"products":["kubeai"],"published":"2026-04-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-16","vendors":["kubeai-project"]},"summary":"Attackers can execute arbitrary shell commands in model pods by injecting malicious URLs into KubeAI Model resources.","url":"https://insights.sbomify.com/CVE-2026-34940/"}