Description
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.
Affected products
kubevirt: kubevirt; redhat: openshift virtualization
References2
- access.redhat.com/security/cve/CVE-2026-13218 Vendor AdvisoryMitigation
- bugzilla.redhat.com/show_bug.cgi?id=2492654 Issue TrackingVendor Advisory
Metrics
- CVSS 3.1
-
4.2
MEDIUM
Score source: CNA
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L - EPSS — exploit probability
- 0% percentile: 3 · as of 16 November 2026
- CWE
- CWE-61
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.