CVE-2026-9804: Kubevirt: kubevirt: vmexport directory symlink escape enables exporter pod file read
A flaw was found in KubeVirt's virt-exportserver component. An attacker with specific namespace-level access can exploit a path traversal vulnerability in the VMExport directory endpoint. By placing a symbolic link (symlink) within an exported filesystem Persistent Volume Claim (PVC) that points outside its designated mount root, the attacker can read arbitrary files from the exporter pod's filesystem. This leads to information disclosure, potentially exposing sensitive data.
Other sources
A path traversal vulnerability was found in KubeVirt's virt-exportserver component. The VMExport directory endpoint uses Go's http.FileServer(http.Dir(mountPoint)) to serve filesystem PVC contents. Because http.Dir follows symbolic links, an attacker who can control files inside an exported filesystem PVC can place a symlink pointing outside the PVC mount root and read arbitrary files from the exporter pod's filesystem through the VMExport directory endpoint.
This vulnerability affects filesystem PVCs that do not have the cdi.kubevirt.io/storage.contentType annotation set to a KubeVirt content type. PVCs with KubeVirt content type receive raw/gzip export endpoints instead of the vulnerable directory endpoint. Namespaces with mixed workloads (pods and VMs) are more likely to have affected PVCs than namespaces hosting only KubeVirt VMs.
To exploit this vulnerability, an attacker must have namespace-level access sufficient to create or control the contents of a filesystem PVC, create a VirtualMachineExport resource for that PVC, and possess or obtain the VMExport token.
— Red Hat
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-9804?
CVE-2026-9804 has a high severity rating of 7.7.
How do I fix CVE-2026-9804?
To remediate CVE-2026-9804, ensure you secure your namespace-level access and review your configurations to prevent symbolic link usage.
What impact does CVE-2026-9804 have on KubeVirt?
CVE-2026-9804 allows an attacker with specific namespace-level access to read files outside the intended directory via a path traversal exploit.
Which component of KubeVirt is affected by CVE-2026-9804?
CVE-2026-9804 affects the virt-exportserver component of KubeVirt.
What type of vulnerability is CVE-2026-9804 classified as?
CVE-2026-9804 is classified as a path traversal vulnerability.