PT-2022-14121 · Kubevirt+1 · Kubevirt+1

Diane Dubois

+3

·

Published

2022-08-18

·

Updated

2024-08-21

·

CVE-2022-1798

CVSS v3.1

8.7

High

VectorAV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:H
Name of the Vulnerable Software and Affected Versions KubeVirt versions up to 0.56 KubeVirt version 0.55.1
Description A path traversal vulnerability in KubeVirt allows a user able to configure the kubevirt to read arbitrary files on the host filesystem which are publicly readable or which are readable for UID 107 or GID 107. The read operations are limited to files which are publicly readable or which are readable for UID 107 or GID 107. /proc/self/<> is not accessible. SELinux may mitigate this vulnerability.
Recommendations For KubeVirt versions up to 0.56, sanitize the imagePath in pkg/container-disk/container-disk.go following ISE best practices and add checks in pkg/virt-api/webhooks/validating-webhook/admitters/vmi-create-admitter.go to mitigate the vulnerability. For KubeVirt version 0.55.1, sanitize the imagePath in pkg/container-disk/container-disk.go following ISE best practices and add checks in pkg/virt-api/webhooks/validating-webhook/admitters/vmi-create-admitter.go to mitigate the vulnerability. As a temporary workaround, consider restricting access to sensitive files on the host filesystem to minimize the risk of exploitation.

Exploit

Fix

Path traversal

RCE

Weakness Enumeration

Related Identifiers

AZL-10974
CVE-2022-1798
GHSA-CVX8-PPMC-78HM
GHSA-QV98-3369-G364
GO-2022-1000
OPENSUSE-SU-2022_3321-1
OPENSUSE-SU-2022_3333-1
SUSE-SU-2022:3321-1
SUSE-SU-2022:3333-1
SUSE-SU-2022_3321-1
SUSE-SU-2022_3333-1

Affected Products

Kubevirt
Suse