MEDIUM 4.2 Go

KubeVirt virt-handler network cache symlink vulnerability allows arbitrary host file overwrite

GHSA-q3jc-42cq-33fj · CVE-2026-13218

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes