Bug 2583149 (CVE-2026-135328)

Summary: CVE-2026-135328 kubevirt: containerized-data-importer: CDI: upload client certificate identity injection via uploadClientName PVC annotation enables cross-namespace writes
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dkeler, suppawar, thason
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in kubevirt Containerized Data Importer (CDI). The CDI clone controller derives the CommonName of a CDI-CA-signed upload client certificate from the tenant-settable cdi.kubevirt.io/uploadClientName PVC annotation without validation, and the upload server authenticates clients only by certificate CA chain and CommonName string match, with no namespace or PVC binding. A namespace user can obtain a valid client certificate and write arbitrary data into any upload-ready PVC in any namespace whose upload Service is reachable from the cluster network, resulting in cross-namespace integrity impact on disk images used by virtual machines.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-24 11:20:50 UTC
A flaw was found in the Containerized Data Importer (CDI) clone controller. The controller's ensureCertSecret (pkg/controller/clone-controller.go) issues a CDI-CA-signed client certificate whose CommonName is read verbatim from the cdi.kubevirt.io/uploadClientName annotation on the target PVC — an annotation a namespace user can set on their own PVCs, with no validation of its value at any layer (no admission check, no allowlist, no comparison to the controller-derived value). The upload server (pkg/uploadserver/uploadserver.go) authenticates clients solely by CA-chain validation plus CommonName string match, with no namespace or PVC binding; for plain upload PVCs the expected client name is the cluster-wide constant client.upload-server.cdi.kubevirt.io (pkg/controller/upload-controller.go), and for clone targets it is a deterministic, derivable string. A namespace user with standard edit-level RBAC (create/update PVCs, create pods in their own namespace) can therefore obtain a valid client certificate — the clone token validation is skipped entirely for same-namespace clones — and blind-write arbitrary disk-image data into any upload-ready PVC in any namespace whose per-PVC headless upload Service they can reach on the pod network. The write is blind but lands in the victim's disk image; a VM booting the tampered image is a further escalation path.