# CVE-2026-13218: Kubevirt: kubevirt: symlink following in writetocachedfile allows host file overwrite from virt-launcher

- Severity: Medium 4.2 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-25T23:23:23.228Z
- Modified: 2026-11-05T23:25:35.991Z
- Also known as: GHSA-q3jc-42cq-33fj, GO-2026-6914
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- container-native-virtualization/virt-handler: no versions given
- container-native-virtualization/virt-handler-rhel9: no versions given
- kubevirt.io/kubevirt (Go): up to 1.10.0-rc.0; all versions
- kubevirt kubevirt: no versions given
- redhat openshift_virtualization: from 4 up to 4.22.0

## Every score

- redhat: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L`

## 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

- CVE List: [CVE-2026-13218](https://www.cve.org/CVERecord?id=CVE-2026-13218), CVE Terms of Use, modified 2026-06-26
- GitHub Advisory Database: [GHSA-q3jc-42cq-33fj](https://github.com/advisories/GHSA-q3jc-42cq-33fj), CC-BY-4.0, modified 2026-11-05
- Go Vulnerability Database: [GO-2026-6914](https://pkg.go.dev/vuln/GO-2026-6914), CC-BY-4.0, modified 2026-11-05
- NVD: [CVE-2026-13218](https://nvd.nist.gov/vuln/detail/CVE-2026-13218), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-13218 · Whole record: https://cve.day/CVE-2026-13218.json · Rebuilt by cve.day 2026-11-25T22:59:26.446Z
