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.
Attack Parameters
Impact Assessment
CVSS Vector v3.1
Weakness Type (CWE)
Vulnerable Products 2
| Configuration | From (including) | Up to (excluding) |
|---|---|---|
|
Kubevirt Kubevirt
cpe:2.3:a:kubevirt:kubevirt:-:*:*:*:*:kubernetes:*:*
|
— | — |
|
Redhat Openshift_Virtualization
cpe:2.3:a:redhat:openshift_virtualization:*:*:*:*:*:*:*:*
|
4
|
<= 4.22.0
|