CVE-2026-13218: KubeVirt virt-handler network cache symlink vulnerability allows arbitrary host file overwrite
A flaw was found in KubeVirt's virt-handler network cache handling. The writeToCachedFile function writes data to a launcher-rooted path using os.WriteFile and os.Chown without symlink protection. A user with access to the virt-launcher container can plant a symlink at the cache file path, causing virt-handler to follow it and overwrite an arbitrary host file with JSON content and change its ownership.
Published Jun 26, 2026 · Updated Nov 4, 2026
Affected packages
kubevirt.io/kubevirt
- Ecosystem
- Go
- Affected
- <= 1.10.0-rc.0
- Fixed in
- No patched version yet
- Check
go list -m kubevirt.io/kubevirt
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A flaw was found in KubeVirt's virt-handler network cache handling. The writeToCachedFile function writes data to a launcher-rooted path using os.WriteFile and os.Chown without symlink protection. A user with access to the virt-launcher container can plant a symlink at the cache file path, causing virt-handler to follow it and overwrite an arbitrary host file with JSON content and change its ownership.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-13218
- https://access.redhat.com/security/cve/CVE-2026-13218
- https://bugzilla.redhat.com/show_bug.cgi?id=2492654
- https://github.com/kubevirt/kubevirt/blob/e63503d2f3a166f79f0891f8e1c3450eb39f88ac/pkg/network/cache/cache.go#L90-L103
- https://github.com/advisories/GHSA-q3jc-42cq-33fj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-13318
KubeVirt virt-api port-forward handler vulnerable to SSRF via guest-controlled VMI IP address
medium6.4Jun 26, 2026CVE-2026-9804
KubeVirt has a Link Following issue
high7.7No fixMay 28, 2026CVE-2026-7374
KubeVirt has a Link Following vulnerability
critical9.9May 26, 2026CVE-2026-6383
KubeVirt's authorization mechanism improperly truncates subresource names
medium5.4No fixApr 15, 2026CVE-2025-14525
KubeVirt Guest Agent DoS via Excessive Network Interface Reports
medium6.4No fixJan 26, 2026CVE-2025-64324
KubeVirt Vulnerable to Arbitrary Host File Read and Write
high7.7Nov 7, 2025
