Vulnerability DatabaseGHSA-qv98-3369-g364

GHSA-qv98-3369-g364
vulnerability analysis and mitigation

Overview

A path traversal vulnerability was discovered in KubeVirt versions 0.20.0 through 0.56 (and 0.55.1) that allows users with permissions to configure KubeVirt to read arbitrary files on the host filesystem. The vulnerability affects files that are publicly readable or accessible to UID/GID 107, though /proc/self/<> remains inaccessible. The issue was discovered by Oliver Brooks and James Klopchic of NCC Group, along with Diane Dubois and Roman Mohr of Google, and was assigned CVE-2022-1798 (GitHub Advisory).

Technical details

The vulnerability stems from improper path validation in multiple VMI spec fields including spec.domain.firmware.kernelBoot.container.kernelPath, spec.domain.firmware.kernelBoot.container.initrdPath, and spec.volumes[*].containerDisk.path. These fields allowed relative paths to be mounted into the virt-launcher pod. The vulnerability could be exploited through three main vectors: using relative paths in VMI specs, placing malicious links in containerDisk, or leveraging PVC hotplugging. The CVSS v3.1 base score is 6.5 (MEDIUM) according to NVD, while Google Inc. assessed it at 8.7 (HIGH) (NVD).

Impact

Users with VMI creation permissions can construct VMI specifications that enable reading arbitrary files on the host system. This includes any publicly readable files or those accessible to UID/GID 107. The vulnerability allows attackers to access sensitive system files, as demonstrated by the ability to read /etc/passwd (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in KubeVirt version 0.55.1. For systems that cannot immediately update, several workarounds are available: disable the HotplugVolumes feature-gate, use a policy controller to prevent containerDisk addition and spec.domain.firmware.kernelBoot usage on VirtualMachineInstances, and enable SELinux (though this doesn't provide 100% protection). ContainerDisk support cannot be disabled (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management