{"vuln_id":"CVE-2026-68903","aliases":["GHSA-jw3m-8q7m-f35r"],"description":"LLMKube: Arbitrary Host File Read via Model.spec.source hostPath Injection","published_at":"2026-11-18T20:19:11.687000Z","modified_at":"2026-11-19T16:21:43.583000Z","first_seen_at":"2026-11-21T19:15:20.145626Z","severity":"high","severity_source":"nvd","cvss_score":7.7,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","cwe":["CWE-22"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.005,"epss_percentile":0.43662,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-68903"},"matched_alias":null,"items":[{"id":10983,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-jw3m-8q7m-f35r: LLMKube: Arbitrary Host File Read via Model.spec.source hostPath Injection","summary":"LLMKube: Arbitrary Host File Read via Model.spec.source hostPath Injection\n\n### Summary\n\nLLMKube's `ModelReconciler` accepts arbitrary absolute paths and `file://` URIs in the `Model.spec.source` field and propagates them to two distinct sinks without path allowlisting: (1) `os.Open()` inside the controller pod itself (`copyLocalModel`), and (2) a Kubernetes `HostPathVolumeSource` that mounts the attacker-supplied path into the inference pod's init container. Any namespace user with permission to create or update `Model` and `InferenceService` custom resources can read arbitrary files accessible to the controller pod (e.g., the controller's own Kubernetes service-account token) or arbitrary files on the node where the inference pod is scheduled (e.g., `/etc/kubernetes/kubelet.conf`). Model caching, the feature that activates the `hostPath` sink, is **enabled by default** in both the CLI and the official Helm chart. CVSS v3.1 Base Score: **7.7 (High)**.\n\n### Details\n\n**Entry point — `Model.spec.source` field**\n\nThe `Source` field in `api/v1alpha1/model_types.go:47-48` carries a `kubebuilder` validation pattern that explicitly permits absolute paths:\n\n```go\n// +kubebuilder:validation:Pattern=`^(https?|file|pvc|hf)://.*|^/[^\\s]+$|^[a-zA-Z0-9][\\w\\-\\.\\/]+$`\nSource string `json:\"source\"`\n```\n\nThe branch `^/[^\\s]+$` matches any non-whitespace absolute path on the host.\n\n**Sink 1 — Controller-pod arbitrary file read (`copyLocalModel`)**\n\n`internal/controller/source.go:93-103` classifies a source as local and extracts the path with no sanitization:\n\n```go\n// isLocalSource: returns true for any \"/\" prefix or \"file://\" prefix\nfunc isLocalSource(source string) bool {\n    return strings.HasPrefix(source, \"/\") || strings.HasPrefix(source, \"file://\")\n}\n\n// getLocalPath: strips \"file://\" prefix only; no canonicalization, no allowlist\nfunc getLocalPath(source string) string {\n    return strings.TrimPrefix(source, \"file://\")\n}\n```\n\n`internal/controller/model_controller.go:241` passes the attacker-controlled source into `fetchModel`, which reaches `copyLocalModel` at line 664-667:\n\n```go\nf, err := os.Open(localPath)   // localPath = getLocalPath(model.Spec.Source)\n```\n\nAn attacker sets `model.spec.source: /var/run/secrets/kubernetes.io/serviceaccount/token`; the controller opens its own SA token and writes it to the model-cache PVC, which the attacker can subsequently read.\n\n**Sink 2 — Node arbitrary file read via `HostPathVolumeSource`**\n\n`internal/controller/model_storage.go:560-568` converts the same path into a Kubernetes host volume with no canonical-root check:\n\n```go\nif isLocalModelSource(model.Spec.Source) {\n    localPath := getLocalPath(model.Spec.Source)\n    volumes = append(volumes, corev1.Volume{\n        Name: \"host-model\",\n        VolumeSource: corev1.VolumeSource{\n            HostPath: &corev1.HostPathVolumeSource{\n                Path: localPath,\n                Type: func() *corev1.HostPathType { t := corev1.HostPathFile; return &t }(),\n            },\n        },\n    })\n    initVolumeMounts = append(initVolumeMounts, corev1.\n\nAffected: Go:github.com/defilantech/llmkube\n\nFixed in: 0.9.0\n\nReferences:\nhttps://github.com/defilantech/LLMKube/security/advisories/GHSA-jw3m-8q7m-f35r\nhttps://github.com/defilantech/LLMKube/pull/981\nhttps://github.com/defilantech/LLMKube/commit/ec2647fd4557962a971a1bc9435790b8e77ce961\nhttps://github.com/defilantech/LLMKube\nhttps://github.com/defilantech/LLMKube/releases/tag/v0.9.0","url":"https://osv.dev/vulnerability/GHSA-jw3m-8q7m-f35r","published_at":"2026-11-18T21:18:02Z","updated_at":"2026-11-18T21:30:13.942147Z","fetched_at":"2026-11-21T19:15:55.946348Z","severity":"high","cvss_score":7.7,"epss":0.005,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/defilantech/llmkube","vuln_id":"CVE-2026-68903","vuln_ids":["CVE-2026-68903","GHSA-JW3M-8Q7M-F35R"],"tags":["osv","go","fix-available"],"cluster_id":2292,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10983","html":"https://vulnwatch.ve1ve2.com/item/10983"}},{"id":2430,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-jw3m-8q7m-f35r / CVE-2026-68903: LLMKube: Arbitrary Host File Read via Model.spec.source hostPath Injection","summary":"LLMKube: Arbitrary Host File Read via Model.spec.source hostPath Injection\n\n### Summary\n\nLLMKube's `ModelReconciler` accepts arbitrary absolute paths and `file://` URIs in the `Model.spec.source` field and propagates them to two distinct sinks without path allowlisting: (1) `os.Open()` inside the controller pod itself (`copyLocalModel`), and (2) a Kubernetes `HostPathVolumeSource` that mounts the attacker-supplied path into the inference pod's init container. Any namespace user with permission to create or update `Model` and `InferenceService` custom resources can read arbitrary files accessible to the controller pod (e.g., the controller's own Kubernetes service-account token) or arbitrary files on the node where the inference pod is scheduled (e.g., `/etc/kubernetes/kubelet.conf`). Model caching, the feature that activates the `hostPath` sink, is **enabled by default** in both the CLI and the official Helm chart. CVSS v3.1 Base Score: **7.7 (High)**.\n\n### Details\n\n**Entry point — `Model.spec.source` field**\n\nThe `Source` field in `api/v1alpha1/model_types.go:47-48` carries a `kubebuilder` validation pattern that explicitly permits absolute paths:\n\n```go\n// +kubebuilder:validation:Pattern=`^(https?|file|pvc|hf)://.*|^/[^\\s]+$|^[a-zA-Z0-9][\\w\\-\\.\\/]+$`\nSource string `json:\"source\"`\n```\n\nThe branch `^/[^\\s]+$` matches any non-whitespace absolute path on the host.\n\n**Sink 1 — Controller-pod arbitrary file read (`copyLocalModel`)**\n\n`internal/controller/source.go:93-103` classifies a source as local and extracts the path with no sanitization:\n\n```go\n// isLocalSource: returns true for any \"/\" prefix or \"file://\" prefix\nfunc isLocalSource(source string) bool {\n    return strings.HasPrefix(source, \"/\") || strings.HasPrefix(source, \"file://\")\n}\n\n// getLocalPath: strips \"file://\" prefix only; no canonicalization, no allowlist\nfunc getLocalPath(source string) string {\n    return strings.TrimPrefix(source, \"file://\")\n}\n```\n\n`internal/controller/model_controller.go:241` passes the attacker-controlled source into `fetchModel`, which reaches `copyLocalModel` at line 664-667:\n\n```go\nf, err := os.Open(localPath)   // localPath = getLocalPath(model.Spec.Source)\n```\n\nAn attacker sets `model.spec.source: /var/run/secrets/kubernetes.io/serviceaccount/token`; the controller opens its own SA token and writes it to the model-cache PVC, which the attacker can subsequently read.\n\n**Sink 2 — Node arbitrary file read via `HostPathVolumeSource`**\n\n`internal/controller/model_storage.go:560-568` converts the same path into a Kubernetes host volume with no canonical-root check:\n\n```go\nif isLocalModelSource(model.Spec.Source) {\n    localPath := getLocalPath(model.Spec.Source)\n    volumes = append(volumes, corev1.Volume{\n        Name: \"host-model\",\n        VolumeSource: corev1.VolumeSource{\n            HostPath: &corev1.HostPathVolumeSource{\n                Path: localPath,\n                Type: func() *corev1.HostPathType { t := corev1.HostPathFile; return &t }(),\n            },\n        },\n    })\n    initVolumeMounts = append(initVolumeMounts, corev1.\n\nAffected packages: go:github.com/defilantech/llmkube\nPatched: github.com/defilantech/llmkube 0.9.0","url":"https://github.com/advisories/GHSA-jw3m-8q7m-f35r","published_at":"2026-11-18T21:18:02Z","updated_at":"2026-11-18T21:18:03Z","fetched_at":"2026-11-21T19:15:18.416830Z","severity":"high","cvss_score":7.7,"epss":0.005,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/defilantech/llmkube","vuln_id":"CVE-2026-68903","vuln_ids":["CVE-2026-68903","GHSA-JW3M-8Q7M-F35R"],"tags":["ghsa","go","CWE-22"],"cluster_id":2292,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2430","html":"https://vulnwatch.ve1ve2.com/item/2430"}},{"id":8176,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-68903: LLMKube is a Kubernetes operator for self-hosted large language model inference across heterogeneous hardware. Prior to 0.9.0, the ModelReconciler accepts arbi…","summary":"LLMKube is a Kubernetes operator for self-hosted large language model inference across heterogeneous hardware. Prior to 0.9.0, the ModelReconciler accepts arbitrary absolute paths and file:// URIs in Model.spec.source without restricting them to approved roots. A namespace user who can create or update Model and InferenceService resources can cause copyLocalModel to open an attacker-selected file in the controller pod or cause a HostPathVolumeSource to mount an attacker-selected node file when modelCache.enabled is enabled, which is the default. The selected file is copied into model storage and can expose controller service-account credentials or other node secrets outside the attacker's namespace. This issue is fixed in version 0.9.0.\n\nReferences:\nhttps://github.com/defilantech/LLMKube/commit/ec2647fd4557962a971a1bc9435790b8e77ce961\nhttps://github.com/defilantech/LLMKube/pull/981\nhttps://github.com/defilantech/LLMKube/releases/tag/v0.9.0\nhttps://github.com/defilantech/LLMKube/security/advisories/GHSA-jw3m-8q7m-f35r","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68903","published_at":"2026-11-18T20:19:11.687000Z","updated_at":"2026-11-19T16:21:43.583000Z","fetched_at":"2026-11-21T19:15:31.483975Z","severity":"high","cvss_score":7.7,"epss":0.005,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-68903","vuln_ids":["CVE-2026-68903","GHSA-JW3M-8Q7M-F35R"],"tags":["CWE-22"],"cluster_id":2293,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8176","html":"https://vulnwatch.ve1ve2.com/item/8176"}}]}