# GHSA-Q3JC-42CQ-33FJ: KubeVirt virt-handler network cache symlink vulnerability allows arbitrary host file overwrite

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-06-26
- Modified: 2026-11-05

## Tracked as

- [CVE-2026-13218](https://cve.now/CVE-2026-13218.md): Kubevirt: kubevirt: symlink following in writetocachedfile allows host file overwrite from virt-launcher

## Also published as

- [GO-2026-6914](https://cve.now/GO-2026-6914.md) (Go)

## Affected versions

- kubevirt.io/kubevirt (Go): through 1.10.0-rc.0

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

## References

- https://nvd.nist.gov/vuln/detail/CVE-2026-13218
- https://access.redhat.com/security/cve/CVE-2026-13218
- https://bugzilla.redhat.com/show_bug.cgi?id=2492654
- https://github.com/kubevirt/kubevirt
- https://github.com/kubevirt/kubevirt/blob/e63503d2f3a166f79f0891f8e1c3450eb39f88ac/pkg/network/cache/cache.go#L90-L103

Page: https://cve.now/GHSA-Q3JC-42CQ-33FJ

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
