GHSA-q3jc-42cq-33fj
Dashboard / Vulnerabilities / GHSA-q3jc-42cq-33fj
GHSA-q3jc-42cq-33fj
Summary: KubeVirt virt-handler network cache symlink vulnerability allows arbitrary host file overwrite
Details: 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
Affected packages
Package
Name: kubevirt.io/kubevirt
Purl: pkg:golang/kubevirt.io/kubevirt
Affected ranges
Type: SEMVER
Events:
