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

Medium 4.2 Published Updated

Attackers with container access can overwrite arbitrary host files via symlink following in virt-handler, potentially escalating privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-13218?

CVE-2026-13218 is a medium-severity path traversal vulnerability in Red Hat OpenShift Virtualization 4, published on 25 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-61

Which versions are affected by CVE-2026-13218?

It affects 2 products.

Products include Kubevirt Kubevirt, Redhat Openshift Virtualization.

How do I fix CVE-2026-13218?

No fix has been published for CVE-2026-13218 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-13218 being exploited?

There is no known exploitation of CVE-2026-13218 in the wild and no public exploit code.

Sources

Also known as AZL-91463, GHSA-q3jc-42cq-33fj, MINI-77qf-fjgh-jqc5, MINI-792p-4qpf-jp4w.

Is CVE-2026-13218 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free