{"id":"CVE-2026-13218","aliases":["CVE-2026-13218","GHSA-q3jc-42cq-33fj","GO-2026-6914"],"related":[],"kind":"vulnerability","state":"published","title":"Kubevirt: kubevirt: symlink following in writetocachedfile allows host file overwrite from virt-launcher","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"KubeVirt virt-handler network cache symlink vulnerability allows arbitrary host file overwrite in kubevirt.io/kubevirt","format":"markdown","source":"go"},{"lang":"es","text":"Se encontró una vulnerabilidad en el manejo de la caché de red del virt-gestor de KubeVirt. La función WriteToCachedFile escribe datos en una ruta con raíz en el lanzador utilizando os.WriteFile y os.Chown sin protección contra enlaces simbólicos. Un usuario con acceso al contenedor virt-launcher puede colocar un enlace simbólico en la ruta del archivo de caché, haciendo que el virt-gestor lo siga y sobrescriba un archivo de host arbitrario con contenido JSON y cambie su propiedad.","source":"nvd"}],"published":"2026-06-25T23:23:23.228Z","modified":"2026-11-05T23:25:35.991Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L","score":4.2,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L","score":4.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L","score":4.2,"rating":"MEDIUM"}],"cwes":["CWE-61"],"affected":[{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Virtualization 4","package":"container-native-virtualization/virt-handler","cpe":"cpe:/a:redhat:container_native_virtualization:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Virtualization 4","package":"container-native-virtualization/virt-handler-rhel9","cpe":"cpe:/a:redhat:container_native_virtualization:4","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.10.0-rc.0"}],"ecosystem":"Go","package":"kubevirt.io/kubevirt","purl":"pkg:golang/kubevirt.io/kubevirt","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"kubevirt.io/kubevirt","purl":"pkg:golang/kubevirt.io/kubevirt","source":"go"},{"ranges":[],"vendor":"kubevirt","product":"kubevirt","cpe":"cpe:2.3:a:kubevirt:kubevirt:-:*:*:*:*:kubernetes:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"4","lastAffected":"4.22.0"}],"vendor":"redhat","product":"openshift_virtualization","cpe":"cpe:2.3:a:redhat:openshift_virtualization:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-13218","tags":["mitigation","vdb-entry","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2492654","tags":["issue-tracking","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-13218","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/kubevirt/kubevirt","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/kubevirt/kubevirt/blob/e63503d2f3a166f79f0891f8e1c3450eb39f88ac/pkg/network/cache/cache.go#L90-L103","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-q3jc-42cq-33fj","tags":["advisory"],"sources":["go"]}],"credits":["This issue was discovered by Huzaifa Sidhpurwala (Red Hat)."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-26T14:58:08.187Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-13218","url":"https://www.cve.org/CVERecord?id=CVE-2026-13218","licence":"CVE Terms of Use","modified":"2026-06-26T14:58:48.021Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q3jc-42cq-33fj","url":"https://github.com/advisories/GHSA-q3jc-42cq-33fj","licence":"CC-BY-4.0","modified":"2026-11-05T23:25:35.991Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6914","url":"https://pkg.go.dev/vuln/GO-2026-6914","licence":"CC-BY-4.0","modified":"2026-11-05T23:15:16.262Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-13218","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-13218","licence":"Public domain","modified":"2026-10-25T22:10:00.150Z"}],"updatedAt":"2026-11-25T22:59:26.446Z","epss":{"score":0.00107,"percentile":0.01248,"date":"2026-12-01T12:00:22.000Z"}}