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…

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/15/2026, 21:31:52 UTC

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.

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/15/2026, 9:31:52 PM

Last updated: 4/15/2026, 10:18:21 PM

Views: 4

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