{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-0358 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-0358 is a high-severity vulnerability in Qemu Qemu, published on 29 Aug 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-0358 and fix it if it is affected.\n\nWhat it is: CVE-2022-0358 is a high-severity vulnerability in Qemu Qemu, published on 29 Aug 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-0358 in the wild and no public exploit code.\n\nAffected product: Qemu Qemu. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-0358/ (Markdown: https://insights.sbomify.com/CVE-2022-0358/index.md)","id":"CVE-2022-0358","markdown":"https://insights.sbomify.com/CVE-2022-0358/index.md","name":"CVE-2022-0358","record":{"aliases":["AZL-10763","AZL-35156","DEBIAN-CVE-2022-0358","GHSA-mv2v-9q68-4c8h","RHSA-2022:0759","RHSA-2022:0886","RHSA-2022:0973","RLSA-2022:0886","UBUNTU-CVE-2022-0358"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"QEMU virtiofsd","requires_auth":"low_privilege","summary":"A local guest user can escalate privileges by creating files with unintended group ownership in shared virtio-fs directories, potentially accessing root group resources.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"qemu","vendor":"qemu"},{"product":"enterprise_linux","vendor":"redhat"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-273","name":"Improper Check for Dropped Privileges"}],"description":"A flaw was found in the QEMU virtio-fs shared file system daemon (virtiofsd) implementation. This flaw is strictly related to CVE-2018-13405. A local guest user can create files in the directories shared by virtio-fs with unintended group ownership in a scenario where a directory is SGID to a certain group and is writable by a user who is not a member of the group. This could allow a malicious unprivileged user inside the guest to gain access to resources accessible to the root group, potentially escalating their privileges within the guest. A malicious local user in the host might also leverage this unexpected executable file created by the guest to escalate their privileges on the host system.","ecosystems":["Red Hat:advanced_virtualization:8.2::el8","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Red Hat:rhel_eus:8.4::appstream","Red Hat:rhel_eus:8.4::crb","Rocky Linux:8"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Privilege escalation in QEMU/virtiofsd","id":"CVE-2022-0358","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"qemu:qemu","products":["qemu:qemu","redhat:enterprise_linux"],"type":"privilege_escalation","year":"2022"},"n_packages":811,"n_references":4,"next":{"headline":"Heap-based Buffer Overflow in vim/vim","id":"CVE-2022-0359"},"packages":[{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:20191022-3.git899d9883.module+el8.2.0+5449+efc036dd"],"introduced":["0"],"last_affected":[],"package":"SLOF","purl":"pkg:rpm/redhat/SLOF","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.3.18-20.module+el8.2.0+5588+63a201c3"],"introduced":["0"],"last_affected":[],"package":"hivex","purl":"pkg:rpm/redhat/hivex","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.3.18-20.module+el8.2.0+5588+63a201c3"],"introduced":["0"],"last_affected":[],"package":"hivex-debuginfo","purl":"pkg:rpm/redhat/hivex-debuginfo","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.3.18-20.module+el8.2.0+5588+63a201c3"],"introduced":["0"],"last_affected":[],"package":"hivex-debugsource","purl":"pkg:rpm/redhat/hivex-debugsource","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.3.18-20.module+el8.2.0+5588+63a201c3"],"introduced":["0"],"last_affected":[],"package":"hivex-devel","purl":"pkg:rpm/redhat/hivex-devel","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs","purl":"pkg:rpm/redhat/libguestfs","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-bash-completion","purl":"pkg:rpm/redhat/libguestfs-bash-completion","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-benchmarking","purl":"pkg:rpm/redhat/libguestfs-benchmarking","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-benchmarking-debuginfo","purl":"pkg:rpm/redhat/libguestfs-benchmarking-debuginfo","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-debuginfo","purl":"pkg:rpm/redhat/libguestfs-debuginfo","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-debugsource","purl":"pkg:rpm/redhat/libguestfs-debugsource","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-devel","purl":"pkg:rpm/redhat/libguestfs-devel","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gfs2","purl":"pkg:rpm/redhat/libguestfs-gfs2","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gobject","purl":"pkg:rpm/redhat/libguestfs-gobject","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gobject-debuginfo","purl":"pkg:rpm/redhat/libguestfs-gobject-debuginfo","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gobject-devel","purl":"pkg:rpm/redhat/libguestfs-gobject-devel","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-inspect-icons","purl":"pkg:rpm/redhat/libguestfs-inspect-icons","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-java","purl":"pkg:rpm/redhat/libguestfs-java","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-java-debuginfo","purl":"pkg:rpm/redhat/libguestfs-java-debuginfo","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-java-devel","purl":"pkg:rpm/redhat/libguestfs-java-devel","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-javadoc","purl":"pkg:rpm/redhat/libguestfs-javadoc","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-man-pages-ja","purl":"pkg:rpm/redhat/libguestfs-man-pages-ja","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-man-pages-uk","purl":"pkg:rpm/redhat/libguestfs-man-pages-uk","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-rescue","purl":"pkg:rpm/redhat/libguestfs-rescue","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-rsync","purl":"pkg:rpm/redhat/libguestfs-rsync","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-tools","purl":"pkg:rpm/redhat/libguestfs-tools","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-tools-c","purl":"pkg:rpm/redhat/libguestfs-tools-c","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-tools-c-debuginfo","purl":"pkg:rpm/redhat/libguestfs-tools-c-debuginfo","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:8.2-2.module+el8.2.1+12663+d52ebc0d"],"introduced":["0"],"last_affected":[],"package":"libguestfs-winsupport","purl":"pkg:rpm/redhat/libguestfs-winsupport","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["1:1.40.2-24.module+el8.2.1+7154+47ffd890"],"introduced":["0"],"last_affected":[],"package":"libguestfs-xfs","purl":"pkg:rpm/redhat/libguestfs-xfs","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.18.0-8.module+el8.2.0+4793+b09dd2fb"],"introduced":["0"],"last_affected":[],"package":"libiscsi","purl":"pkg:rpm/redhat/libiscsi","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.18.0-8.module+el8.2.0+4793+b09dd2fb"],"introduced":["0"],"last_affected":[],"package":"libiscsi-debuginfo","purl":"pkg:rpm/redhat/libiscsi-debuginfo","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.18.0-8.module+el8.2.0+4793+b09dd2fb"],"introduced":["0"],"last_affected":[],"package":"libiscsi-debugsource","purl":"pkg:rpm/redhat/libiscsi-debugsource","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.18.0-8.module+el8.2.0+4793+b09dd2fb"],"introduced":["0"],"last_affected":[],"package":"libiscsi-devel","purl":"pkg:rpm/redhat/libiscsi-devel","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.18.0-8.module+el8.2.0+4793+b09dd2fb"],"introduced":["0"],"last_affected":[],"package":"libiscsi-utils","purl":"pkg:rpm/redhat/libiscsi-utils","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.18.0-8.module+el8.2.0+4793+b09dd2fb"],"introduced":["0"],"last_affected":[],"package":"libiscsi-utils-debuginfo","purl":"pkg:rpm/redhat/libiscsi-utils-debuginfo","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.2.2-1.module+el8.2.0+5644+32ac38d4"],"introduced":["0"],"last_affected":[],"package":"libnbd","purl":"pkg:rpm/redhat/libnbd","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.2.2-1.module+el8.2.0+5644+32ac38d4"],"introduced":["0"],"last_affected":[],"package":"libnbd-debuginfo","purl":"pkg:rpm/redhat/libnbd-debuginfo","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.2.2-1.module+el8.2.0+5644+32ac38d4"],"introduced":["0"],"last_affected":[],"package":"libnbd-debugsource","purl":"pkg:rpm/redhat/libnbd-debugsource","source":"RHSA-2022:0973"},{"ecosystem":"Red Hat:advanced_virtualization:8.2::el8","fixed":["0:1.2.2-1.module+el8.2.0+5644+32ac38d4"],"introduced":["0"],"last_affected":[],"package":"libnbd-devel","purl":"pkg:rpm/redhat/libnbd-devel","source":"RHSA-2022:0973"}],"prev":{"headline":"Improper Quoting Path Issue in Bitdefender Total Security","id":"CVE-2022-0357"},"products":["QEMU/virtiofsd"],"published":"2022-08-29","related":[{"cvss_score":10,"headline":"Null dereference in n/a","id":"CVE-2022-36648","kev_date_added":null,"published":"2023-08-22"},{"cvss_score":10,"headline":"Race condition in n/a","id":"CVE-2015-8556","kev_date_added":null,"published":"2017-03-24"},{"cvss_score":9.9,"headline":"Use after free in n/a","id":"CVE-2009-3616","kev_date_added":null,"published":"2009-10-23"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2019-12928","kev_date_added":null,"published":"2019-06-24"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2019-12929","kev_date_added":null,"published":"2019-06-24"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2018-20815","kev_date_added":null,"published":"2019-05-31"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-8380","kev_date_added":null,"published":"2017-08-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["n/a"]},"summary":"A local guest user can escalate privileges by creating files with unintended group ownership in shared virtio-fs directories, potentially accessing root group resources.","url":"https://insights.sbomify.com/CVE-2022-0358/"}