CVE-2026-34940: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in kubeai-project kubeai
KubeAI versions prior to 0. 23. 2 contain an OS command injection vulnerability in the ollamaStartupProbeScript() function. This function unsafely constructs shell commands from unsanitized model URL components, which are executed as Kubernetes startup probes. An attacker with permissions to create or update Model custom resources can inject arbitrary shell commands that run inside model server pods. This vulnerability is fixed in version 0. 23. 2.
AI Analysis
Technical Summary
CVE-2026-34940 is an OS command injection vulnerability (CWE-78) in kubeai-project's KubeAI product affecting versions before 0.23.2. The vulnerability arises because the ollamaStartupProbeScript() function uses fmt.Sprintf to build a shell command string incorporating unsanitized input from model URL components (ref, modelParam). This command is executed via 'bash -c' as a Kubernetes startup probe, allowing an attacker who can create or update Model custom resources to execute arbitrary shell commands within the model server pods. The issue is resolved in version 0.23.2.
Potential Impact
Successful exploitation allows an attacker with Model custom resource creation or update privileges to execute arbitrary shell commands inside model server pods. This can lead to complete compromise of the affected pod's environment, including potential data exposure and disruption of service. The CVSS score is 8.7 (high), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high confidentiality and integrity impact without availability impact.
Mitigation Recommendations
Upgrade KubeAI to version 0.23.2 or later, where this vulnerability is fixed. Since no official patch or workaround is detailed beyond this version update, applying the upgrade is the recommended remediation. Patch status is not explicitly confirmed beyond the fix in 0.23.2, so users should verify with the vendor advisory for the latest guidance.
CVE-2026-34940: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in kubeai-project kubeai
Description
KubeAI versions prior to 0. 23. 2 contain an OS command injection vulnerability in the ollamaStartupProbeScript() function. This function unsafely constructs shell commands from unsanitized model URL components, which are executed as Kubernetes startup probes. An attacker with permissions to create or update Model custom resources can inject arbitrary shell commands that run inside model server pods. This vulnerability is fixed in version 0. 23. 2.
CVSS v3.1
Score 8.7high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-34940 is an OS command injection vulnerability (CWE-78) in kubeai-project's KubeAI product affecting versions before 0.23.2. The vulnerability arises because the ollamaStartupProbeScript() function uses fmt.Sprintf to build a shell command string incorporating unsanitized input from model URL components (ref, modelParam). This command is executed via 'bash -c' as a Kubernetes startup probe, allowing an attacker who can create or update Model custom resources to execute arbitrary shell commands within the model server pods. The issue is resolved in version 0.23.2.
Potential Impact
Successful exploitation allows an attacker with Model custom resource creation or update privileges to execute arbitrary shell commands inside model server pods. This can lead to complete compromise of the affected pod's environment, including potential data exposure and disruption of service. The CVSS score is 8.7 (high), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high confidentiality and integrity impact without availability impact.
Mitigation Recommendations
Upgrade KubeAI to version 0.23.2 or later, where this vulnerability is fixed. Since no official patch or workaround is detailed beyond this version update, applying the upgrade is the recommended remediation. Patch status is not explicitly confirmed beyond the fix in 0.23.2, so users should verify with the vendor advisory for the latest guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-31T17:27:08.660Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e0004582d89c981f9b91c4
Added to database: 4/15/2026, 9:16:53 PM
Last enriched: 4/22/2026, 11:12:37 PM
Last updated: 5/30/2026, 9:13:27 AM
Views: 92
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.