KubeVirt Security Audit Findings (Quarkslab/OSTIF)#
The Open Source Technology Improvement Fund (OSTIF), funded by the Sovereign Tech Fund, commissioned Quarkslab to audit KubeVirt v1.5.0 over 37 days. The full technical report is publicly available and covers all findings in detail.
Total findings: 1 HIGH, 7 MEDIUM, 4 LOW, 3 INFO — with 7 CVEs assigned .
The findings below cover the full set of audit results, with special emphasis on those not yet addressed in code as of the filing of tracking issues in the kubevirt/kubevirt repository on October 1, 2026.
CVEs Assigned by the Audit#
Seven CVEs were assigned as a result of the audit :
| CVE | Finding ID | Summary |
|---|---|---|
| CVE-2025-64324 | HIGH-6 | Arbitrary host file read/write via hostDisk DiskOrCreate (pkg/host-disk/host-disk.go) |
| CVE-2025-64432 | MEDIUM-2 | Authentication bypass in Kubernetes aggregation layer (virt-api fails CN check) |
| CVE-2025-64433 | MEDIUM-7 | Arbitrary container file read via PVC symlink into virt-launcher pod |
| CVE-2025-64434 | MEDIUM-3 | Improper TLS cert management — compromised virt-handler can impersonate virt-api |
| CVE-2025-64435 | MEDIUM-8 | VMI DoS via pod impersonation in virt-controller |
| CVE-2025-64436 | MEDIUM-5 | Excessive virt-handler service account permissions enabling unauthorized VMI migrations |
| CVE-2025-64437 | MEDIUM-9 | Isolation detection flaw allows arbitrary file permission changes via symlink |
These findings affected virt-api, virt-handler, virt-controller, and virt-launcher. Verify remediation status in code — not all CVE-assigned findings may have merged fixes at time of reading.
Outstanding Unaddressed Findings#
The following findings were filed as GitHub issues and confirmed unaddressed in code at the time of filing. Each links to its tracking issue and the primary code location.
LOW-4 — TLS CN Verification Skipped with --externally-managed · #19286#
When virt-handler starts with --externally-managed, verifyPeerCert short-circuits before the Common Name loop, accepting any certificate chaining to the intermediate CA regardless of CN . This means both server and client mTLS endpoints accept certs that do not belong to KubeVirt components. The CN values are already known at each call site; the fix is to remove the early return for the externallyManaged path.
Affected code: pkg/util/tls/tls.go, cmd/virt-handler/virt-handler.go
LOW-14 — Host Devices Allocatable by Any Pod · #19288#
When HostDevices is enabled and a device is declared under spec.configuration.permittedHostDevices, virt-handler registers it as a Kubernetes device-plugin resource. Any cluster pod — not just KubeVirt VM pods — can request and receive the device . The Kubernetes device-plugin API has no built-in authorization scoping.
Recommended fix: Add a ValidatingAdmissionPolicy or ValidatingWebhookConfiguration restricting devices.kubevirt.io/* requests to pods created by virt-controller only .
LOW-15 — Sidecar Hook Script Integrity · #19289#
When the Sidecar feature gate uses a ConfigMap to supply the hook script (hooks.kubevirt.io/hookSidecars annotation), anyone with RBAC write access to that ConfigMap can modify the script that runs inside sidecar-shim in virt-launcher . This is a privilege escalation path from "can edit ConfigMap" to "can execute arbitrary code inside virt-launcher."
A GSoC proposal for Sigstore/Cosign-based verification (#16552) was closed with no implementation. The recommended interim fix is a checksum or signature field in the hooks.kubevirt.io/hookSidecars annotation, validated by virt-launcher before execution .
INFO-10 — containerDisk Mounts Arbitrary Files · #19291#
The containerDisk volume type accepts any file path inside the referenced container image as a "disk." GetImage performs no format validation, and qemu-img classifies any non-QCOW2 file as raw (no magic bytes required), so arbitrary files like /etc/passwd embedded in a container image pass VerifyImage and are exposed to the guest VM as raw block-device content .
Affected code: pkg/container-disk/container-disk.go, pkg/os/disk/validation.go
INFO-11 — virt-handler REST Nil-Pointer Panic · #19292#
Any caller with a valid virt-handler client certificate can trigger an unhandled nil-pointer panic by targeting a VMI name not present in the handler's local vmiStore. getVMI returns nil on a not-found lookup; getVMILauncherClient then calls log.Log.Object(nil), which dereferences the nil pointer . The panic affects PauseHandler and all lifecycle handlers routing through getVMILauncherClient.
Affected code: pkg/virt-handler/rest/lifecycle.go , pkg/virt-handler/rest/common.go
Fix: Guard the error-logging line in getVMILauncherClient to avoid calling log.Log.Object(vmi) when vmi is nil.
LOW-13 — virt-operator Webhook Doesn't Enforce mTLS · (no dedicated tracking issue filed at audit time)#
The virt-operator webhook server on port 8444 uses tls.VerifyClientCertIfGiven, which accepts unauthenticated connections . Any cluster pod can replay webhook payloads without authentication. The recommended fix is to enforce mTLS (requiring a client cert) and/or apply a NetworkPolicy limiting access to the kube-apiserver.
MEDIUM-12 — virt-operator Deployed on Worker Nodes · (no dedicated tracking issue filed at audit time)#
The virt-operator Deployment lacks a nodeAffinity rule to pin it to control-plane nodes . If a worker node is compromised, the highly privileged kubevirt-operator service account — which has full RBAC and pod creation rights across the cluster — is exposed. The virt-api Deployment already has such a nodeAffinity rule; the same pattern should be applied to virt-operator.
Key References#
- Full audit report: KubeVirt_OSTIF_Report_25-06-2150-REP_v1.2.pdf
- Audit scope: KubeVirt v1.5.0, commit
522b44c0ce8d - Tracking issues: #19286, #19288, #19289, #19291, #19292
- Closed related proposal: #16552 (sidecar hook verification, unimplemented)
- Primary code paths:
- TLS verification:
pkg/util/tls/tls.go - containerDisk resolution:
pkg/container-disk/container-disk.go - virt-handler REST lifecycle:
pkg/virt-handler/rest/lifecycle.go - virt-handler REST common:
pkg/virt-handler/rest/common.go
- TLS verification: