Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 96%

CVE-2026-34940: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in kubeai-project kubeai

0
High
VulnerabilityCVE-2026-34940cvecve-2026-34940cwe-78
Published: Mon Apr 06 2026 (04/06/2026, 15:49:06 UTC)
Source: CVE Database V5
Vendor/Project: kubeai-project
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/22/2026, 23:12:37 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses