CVE-2026-13218
JSON

4.2medium

Kubevirt: kubevirt: symlink following in writetocachedfile allows host file overwrite from virt-launcher

Severity
4.2medium CVSS:3.1 by redhat
Exploit likelihood
0.11% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-q3jc-42cq-33fjGO-2026-6914

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

Product or packageVersionsReported by
container-native-virtualization/virt-handlerNot specifiedCVE List
container-native-virtualization/virt-handler-rhel9Not specifiedCVE List
kubevirt.io/kubevirt (Go)up to 1.10.0-rc.0, all versionsGitHub Advisory Database, Go Vulnerability Database
kubevirt kubevirtNot specifiedNVD
redhat openshift_virtualizationfrom 4 up to 4.22.0NVD

All scores

redhat4.2medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L
GitHub4.2medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L

Classification

CWE-61

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

Go Vulnerability Database

KubeVirt virt-handler network cache symlink vulnerability allows arbitrary host file overwrite in kubevirt.io/kubevirt

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-13218 changed 2026-06-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-q3jc-42cq-33fj changed 2026-11-05CC-BY-4.0
Go Vulnerability DatabaseGO-2026-6914 changed 2026-11-05CC-BY-4.0
NVDCVE-2026-13218 changed 2026-10-25Public domain