{"answers":{"affected":"3 open source packages ship an affected version, including kubevirt.io/kubevirt. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-1798 exists.","fix":"Upgrade kubevirt.io/kubevirt to 0.55.1 or later.","what":"CVE-2022-1798 is a high-severity path traversal vulnerability in Google LLC Kubevirt, published on 15 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-1798 and fix it if it is affected.\n\nWhat it is: CVE-2022-1798 is a high-severity path traversal vulnerability in Google LLC Kubevirt, published on 15 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-1798 exists.\n\nAffected packages and fixed versions:\n- kubevirt.io/kubevirt (Go): affected from 0.20.0; fixed in 0.55.1\n- kubevirt.io/kubevirt (Go): affected from 0.20.0; fixed in 0.55.1\n- kubevirt.io/kubevirt (Go): affected from 0.20.0; fixed in 0.55.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-1798/ (Markdown: https://insights.sbomify.com/CVE-2022-1798/index.md)","id":"CVE-2022-1798","markdown":"https://insights.sbomify.com/CVE-2022-1798/index.md","name":"CVE-2022-1798","record":{"aliases":["AZL-10974","GHSA-qv98-3369-g364","GO-2022-1000"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"KubeVirt virtualization","requires_auth":"low_privilege","summary":"A path traversal flaw in KubeVirt allows attackers to read arbitrary host files accessible to UID 107, impacting containerized virtualization environments.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[{"product":"kubevirt","vendor":"kubevirt"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"A path traversal vulnerability in KubeVirt versions up to 0.56 (and 0.55.1) on all platforms 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. /proc/self/\u003c\u003e is not accessible.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Path Traversal vulnerability in Kubevirt","id":"CVE-2022-1798","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":3,"n_references":1,"next":{"headline":"Incorrect signature verification on Google play-services-basement in Google Play SDK","id":"CVE-2022-1799"},"packages":[{"ecosystem":"Go","fixed":["0.55.1"],"introduced":["0.20.0"],"last_affected":[],"package":"kubevirt.io/kubevirt","purl":null,"source":"GHSA-qv98-3369-g364"},{"ecosystem":"Go","fixed":["0.55.1"],"introduced":["0.20.0"],"last_affected":[],"package":"kubevirt.io/kubevirt","purl":"pkg:golang/kubevirt.io/kubevirt","source":"GHSA-qv98-3369-g364"},{"ecosystem":"Go","fixed":["0.55.1"],"introduced":["0.20.0"],"last_affected":[],"package":"kubevirt.io/kubevirt","purl":"pkg:golang/kubevirt.io/kubevirt","source":"GO-2022-1000"}],"prev":{"headline":"Rockwell Automation Logix Controllers Uncontrolled Resource Consumption","id":"CVE-2022-1797"},"products":["Kubevirt"],"published":"2022-09-15","related":[{"cvss_score":9.9,"headline":"Privilege Escalation in kubevirt","id":"CVE-2020-14316","kev_date_added":null,"published":"2020-07-29"},{"cvss_score":8.5,"headline":"KubeVirt Vulnerable to Arbitrary Host File Read and Write","id":"CVE-2025-64324","kev_date_added":null,"published":"2025-11-18"},{"cvss_score":8.2,"headline":"On a compromised KubeVirt node, the virt-handler service account can be used to modify all node specs","id":"CVE-2023-26484","kev_date_added":null,"published":"2023-03-15"},{"cvss_score":7.3,"headline":"Path traversal in Red Hat Container Native Virtualization 4.12","id":"CVE-2026-13201","kev_date_added":null,"published":"2026-06-24"},{"cvss_score":6.9,"headline":"KubeVirt Excessive Role Permissions Could Enable Unauthorized VMI Migrations Between Nodes","id":"CVE-2025-64436","kev_date_added":null,"published":"2025-11-07"},{"cvss_score":6.5,"headline":"Auth bypass in Red Hat OpenShift Virtualization 4","id":"CVE-2026-13208","kev_date_added":null,"published":"2026-06-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-21","vendors":["Google LLC"]},"summary":"A path traversal flaw in KubeVirt allows attackers to read arbitrary host files accessible to UID 107, impacting containerized virtualization environments.","url":"https://insights.sbomify.com/CVE-2022-1798/"}