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 package | Versions | Reported by |
|---|---|---|
| container-native-virtualization/virt-handler | Not specified | CVE List |
| container-native-virtualization/virt-handler-rhel9 | Not specified | CVE List |
| kubevirt.io/kubevirt (Go) | up to 1.10.0-rc.0, all versions | GitHub Advisory Database, Go Vulnerability Database |
| kubevirt kubevirt | Not specified | NVD |
| redhat openshift_virtualization | from 4 up to 4.22.0 | NVD |
All scores
| redhat | 4.2medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L |
| GitHub | 4.2medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L |
Classification
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
| https://access.redhat.com/security/cve/CVE-2026-13218 | mitigation, vdb-entry, vendor-advisory, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2492654 | issue-tracking, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-13218 | advisory | |
| https://github.com/kubevirt/kubevirt | package | |
| https://github.com/kubevirt/kubevirt/blob/e63503d2f3a166f79f0891f8e1c3450eb39f88ac/pkg/network/cache/cache.go#L90-L103 | web | |
| https://github.com/advisories/GHSA-q3jc-42cq-33fj | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-13218 changed 2026-06-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q3jc-42cq-33fj changed 2026-11-05 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6914 changed 2026-11-05 | CC-BY-4.0 |
| NVD | CVE-2026-13218 changed 2026-10-25 | Public domain |