CVE-2026-13218 Kubevirt: kubevirt: symlink following in writetocachedfile allows host file overwrite from virt-launcher
MediumCVSS 4.2
EPSS 0.14%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
8 packages: 1 fixed, 1 partially fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux kubevirt(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| azure linux kubevirt-openvmm(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| kubevirt github.com/kubevirt/kubevirt | All versions | No fix listed | No fix yet |
| redhat container native virtualization | All versions | No fix listed | No fix yet |
| redhat/container-native-virtualization/virt-handler(Red Hat container_native_virtualization 4) | All versions | No fix listed | No fix yet |
| redhat/container-native-virtualization/virt-handler-rhel9(Red Hat container_native_virtualization 4) | All versions | No fix listed | No fix yet |
| kubevirt.io/kubevirt(Go) | <= 1.10.0-rc.0; All versions | after 1.10.0-rc.0 | Partially fixed |
| redhat openshift virtualization | >= 4, <= 4.22.0 | after 4.22.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| kubevirt.io/kubevirt(Go) | <= 1.10.0-rc.0 | No fix listed |
| kubevirt.io/kubevirt(Go) | All versions | No fix listed |
| redhat container native virtualization | All versions | No fix listed |
| redhat/container-native-virtualization/virt-handler(Red Hat:container_native_virtualization:4) | All versions | No fix listed |
| redhat/container-native-virtualization/virt-handler-rhel9(Red Hat:container_native_virtualization:4) | All versions | No fix listed |
| kubevirt github.com/kubevirt/kubevirt | All versions | No fix listed |
| redhat openshift virtualization | >= 4, <= 4.22.0 | No fix listed |
| azure linux kubevirt(Azure Linux:3.0) | All versions | No fix listed |
| azure linux kubevirt-openvmm(Azure Linux:3.0) | All versions | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- Security Update patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2492654 issue-tracking vendor-advisory
- github.com product
- github.com
- github.com vendor-advisory
- www.cve.org