{"id":"CVE-2026-13218","published":"2026-06-25T23:23:23Z","modified":"2026-06-26T14:58:48Z","title":"Kubevirt: kubevirt: symlink following in writetocachedfile allows host file overwrite from virt-launcher","vendor":"Red Hat","product":"Red Hat OpenShift Virtualization 4","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00139,"percentile":0.0162,"provenance":"source"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-13218","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2492654","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":3.3,"factors":[{"name":"EPSS percentile","points":0.32},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat OpenShift Virtualization 4","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenShift Virtualization 4","versions":["all versions"]}],"workarounds":{"items":["Ensure virtual machines use the default masquerade network binding mode where possible. Restrict pods/exec access on virt-launcher pods to only trusted administrators. Review and restrict NetworkAttachmentDefinition resources to limit which namespaces can configure bridge-type network interfaces."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-26T14:58:08.187830Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"kubevirt.io/kubevirt","vulnerableRanges":["<=1.10.0-rc.0","all versions"],"patched":[],"from":["GHSA-q3jc-42cq-33fj","GO-2026-6914"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-39594","exploited":false,"provenance":"source"}}