🔍 CVE-2026-34940

8.7
CVSS Score
HIGH
2026-04-06
2026-06-17 10:39
✅ 완료

🇰🇷 한글 설명

KubeAI의 ollamaStartupProbeScript() 함수가 모델 URL 구성요소(ref, modelParam)를 충분히 검증하지 않아 shell command injection 취약점이 존재합니다. Model custom resource를 생성 또는 업데이트할 수 있는 공격자가 Kubernetes startup probe에서 임의의 shell 명령어를 실행할 수 있으며, 이는 모델 서버 pod 내에서 코드 실행을 초래합니다. 0.23.2 버전에서 수정되었습니다.

💡 쉬운 설명

KubeAI 소프트웨어의 설정 입력창에서 특수 명령어를 삽입하면, 관리자 권한으로 악의적인 코드를 서버에서 실행할 수 있습니다. 이를 통해 데이터 탈취, 시스템 장악, 또는 다른 컴퓨터로의 공격 확대가 가능합니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

KubeAI 버전 0.23.2 미만

⚔️ 공격 벡터

Kubernetes API를 통해 Model custom resource 생성/수정 시 ref 또는 modelParam에 bash metacharacters($, ", ;, |, &) 주입

🛡️ 대응 방법

KubeAI를 0.23.2 이상으로 즉시 업그레이드

🔧 검증 코드

출력된 버전이 0.23.2 이상이면 안전, 미만이면 취약함

Shell / Script
kubectl get deployment kubeai -n kubeai -o jsonpath='{.spec.template.spec.containers[0].image}' 2>/dev/null | grep -oP 'v?\K[0-9.]+'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N

💻 영향받는 소프트웨어

Kubernetes