Miggo Logo

CVE-2022-1798: Duplicate Advisory: KubeVirt arbitrary host file read from the VM

6.5

CVSS Score
3.1

Basic Information

EPSS Score
0.08774%
Published
8/18/2022
Updated
4/3/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
kubevirt.io/kubevirtgo>= 0.20.0, < 0.55.10.55.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key failures: 1) In container-disk.go, the imagePath handling didn't sanitize traversal sequences, allowing escape from /var/run/kubevirt/container-disks/ base directory. 2) The admission webhook in vmi-create-admitter.go failed to validate() user-controlled path fields (containerDisk.path, kernelBoot paths) for traversal attempts. Both locations are explicitly called out in the 'Further Analysis' section of advisories as requiring fixes, and the attack vectors directly manipulate these fields in the VMI spec.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

## *upli**t* **visory T*is **visory is * *upli**t* o* [**S*-qv**-****-****](*ttps://*it*u*.*om/**visori*s/**S*-qv**-****-****). T*is link is m*int*in** to pr*s*rv* *xt*rn*l r***r*n**s. ## Ori*in*l **s*ription **Summ*ry** *s p*rt o* * Ku**virt *u*it

Reasoning

T** vuln*r**ility st*ms *rom two k*y **ilur*s: *) In `*ont*in*r-*isk.*o`, t** im***P*t* **n*lin* *i*n't s*nitiz* tr*v*rs*l s*qu*n**s, *llowin* *s**p* *rom `/v*r/run/ku**virt/*ont*in*r-*isks/` **s* *ir**tory. *) T** **mission w***ook in `vmi-*r**t*-**