CVE-2026-13218

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

State
Published
Severity
4.2 Medium
Published
Jun 25, 2026
Updated
Jun 26, 2026
Reserved
Jun 24, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.2 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:Lredhat

Weaknesses

  • CWE-61 UNIX Symbolic Link (Symlink) Following

Affected Products

ProductVersions
Red Hat OpenShift Virtualization 4Red Hat
    Red Hat OpenShift Virtualization 4Red Hat

      References

      Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.