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
KubeAI, an AI inference operator for Kubernetes, has an OS command injection vulnerability (CWE-78) in versions before 0.23.2. The vulnerability arises because the ollamaStartupProbeScript() function uses fmt.Sprintf to build a shell command string incorporating unsanitized model URL components (ref, modelParam). This command is executed via 'bash -c' as a Kubernetes startup probe, allowing an attacker with Model custom resource modification privileges to execute arbitrary shell commands inside model server pods. The issue is resolved in version 0.23.2.
Potential Impact
Successful exploitation allows an attacker with permissions to create or update Model custom resources to execute arbitrary shell commands within the context of model server pods. This can lead to complete compromise of the affected pod, including confidentiality and integrity impacts. The CVSS 3.1 score is 8.7 (High), reflecting network attack vector, low attack complexity, required privileges, no user interaction, scope change, and high confidentiality and integrity impact with no availability impact.
Mitigation Recommendations
Upgrade KubeAI to version 0.23.2 or later, where this vulnerability is fixed. Since no official patch or temporary fix details are provided beyond the version update, applying this upgrade is the recommended remediation. Restrict permissions to create or update Model custom resources to trusted users only to reduce risk until the upgrade is applied.
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
KubeAI, an AI inference operator for Kubernetes, has an OS command injection vulnerability (CWE-78) in versions before 0.23.2. The vulnerability arises because the ollamaStartupProbeScript() function uses fmt.Sprintf to build a shell command string incorporating unsanitized model URL components (ref, modelParam). This command is executed via 'bash -c' as a Kubernetes startup probe, allowing an attacker with Model custom resource modification privileges to execute arbitrary shell commands inside model server pods. The issue is resolved in version 0.23.2.
Potential Impact
Successful exploitation allows an attacker with permissions to create or update Model custom resources to execute arbitrary shell commands within the context of model server pods. This can lead to complete compromise of the affected pod, including confidentiality and integrity impacts. The CVSS 3.1 score is 8.7 (High), reflecting network attack vector, low attack complexity, required privileges, no user interaction, scope change, and high confidentiality and integrity impact with no availability impact.
Mitigation Recommendations
Upgrade KubeAI to version 0.23.2 or later, where this vulnerability is fixed. Since no official patch or temporary fix details are provided beyond the version update, applying this upgrade is the recommended remediation. Restrict permissions to create or update Model custom resources to trusted users only to reduce risk until the upgrade is applied.
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/15/2026, 9:31:52 PM
Last updated: 4/15/2026, 10:18:21 PM
Views: 4
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.