{"api_version":"1","generated_at":"2026-04-23T03:26:25+00:00","cve":"CVE-2022-0358","urls":{"html":"https://cve.report/CVE-2022-0358","api":"https://cve.report/api/cve/CVE-2022-0358.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-0358","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-0358"},"summary":{"title":"CVE-2022-0358","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.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-08-29 15:15:00","updated_at":"2022-12-09 18:00:00"},"problem_types":["CWE-273"],"metrics":[],"references":[{"url":"https://security.netapp.com/advisory/ntap-20221007-0008/","name":"https://security.netapp.com/advisory/ntap-20221007-0008/","refsource":"CONFIRM","tags":[],"title":"CVE-2022-0358 QEMU Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://gitlab.com/qemu-project/qemu/-/commit/449e8171f96a6a944d1f3b7d3627ae059eae21ca","name":"https://gitlab.com/qemu-project/qemu/-/commit/449e8171f96a6a944d1f3b7d3627ae059eae21ca","refsource":"MISC","tags":[],"title":"virtiofsd: Drop membership of all supplementary groups (CVE-2022-0358) (449e8171) · Commits · QEMU / QEMU · GitLab","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2044863","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2044863","refsource":"MISC","tags":[],"title":"2044863 – (CVE-2022-0358) CVE-2022-0358 QEMU: virtiofsd: potential privilege escalation via CVE-2018-13405","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://access.redhat.com/security/cve/CVE-2022-0358","name":"https://access.redhat.com/security/cve/CVE-2022-0358","refsource":"MISC","tags":[],"title":"Red Hat Customer Portal - Access to 24x7 support and knowledge","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-0358","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0358","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"358","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"qemu","cpe5":"qemu","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"358","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"advanced_virtualization","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-0358","qid":"159713","title":"Oracle Enterprise Linux Security Update for virt:ol and virt-devel:rhel (ELSA-2022-0886)"},{"cve":"CVE-2022-0358","qid":"179273","title":"Debian Security Update for qemu (DSA 5133-1)"},{"cve":"CVE-2022-0358","qid":"184085","title":"Debian Security Update for qemu (CVE-2022-0358)"},{"cve":"CVE-2022-0358","qid":"198683","title":"Ubuntu Security Notification for QEMU Vulnerabilities (USN-5307-1)"},{"cve":"CVE-2022-0358","qid":"198837","title":"Ubuntu Security Notification for QEMU Vulnerabilities (USN-5489-1)"},{"cve":"CVE-2022-0358","qid":"240119","title":"Red Hat Update for virt:rhel and virt-devel:rhel (RHSA-2022:0759)"},{"cve":"CVE-2022-0358","qid":"240150","title":"Red Hat Update for virt:rhel and virt-devel:rhel (RHSA-2022:0886)"},{"cve":"CVE-2022-0358","qid":"282383","title":"Fedora Security Update for qemu (FEDORA-2022-3a60c34473)"},{"cve":"CVE-2022-0358","qid":"282444","title":"Fedora Security Update for qemu (FEDORA-2022-5d0676b098)"},{"cve":"CVE-2022-0358","qid":"354314","title":"Amazon Linux Security Advisory for qemu : ALAS2022-2022-050"},{"cve":"CVE-2022-0358","qid":"377397","title":"Alibaba Cloud Linux Security Update for virt:rhel and virt-devel:rhel (ALINUX3-SA-2022:0022)"},{"cve":"CVE-2022-0358","qid":"710604","title":"Gentoo Linux QEMU Multiple Vulnerabilities (GLSA 202208-27)"},{"cve":"CVE-2022-0358","qid":"751920","title":"OpenSUSE Security Update for qemu (openSUSE-SU-2022:0930-1)"},{"cve":"CVE-2022-0358","qid":"752009","title":"SUSE Enterprise Linux Security Update for qemu (SUSE-SU-2022:0930-1)"},{"cve":"CVE-2022-0358","qid":"903829","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for qemu (10763-1)"},{"cve":"CVE-2022-0358","qid":"904795","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for qemu-kvm (10782)"},{"cve":"CVE-2022-0358","qid":"905193","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for qemu-kvm (10782-1)"},{"cve":"CVE-2022-0358","qid":"905889","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for qemu-kvm (10782-2)"},{"cve":"CVE-2022-0358","qid":"940472","title":"AlmaLinux Security Update for virt:rhel and virt-devel:rhel (ALSA-2022:0886)"},{"cve":"CVE-2022-0358","qid":"960800","title":"Rocky Linux Security Update for virt:rhel and virt-devel:rhel (RLSA-2022:0886)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2022-0358","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"QEMU/virtiofsd","version":{"version_data":[{"version_value":"Fixed in qemu v6.2.0-7"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-273 - Improper Check for Dropped Privileges."}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2044863","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2044863"},{"refsource":"MISC","name":"https://gitlab.com/qemu-project/qemu/-/commit/449e8171f96a6a944d1f3b7d3627ae059eae21ca","url":"https://gitlab.com/qemu-project/qemu/-/commit/449e8171f96a6a944d1f3b7d3627ae059eae21ca"},{"refsource":"MISC","name":"https://access.redhat.com/security/cve/CVE-2022-0358","url":"https://access.redhat.com/security/cve/CVE-2022-0358"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20221007-0008/","url":"https://security.netapp.com/advisory/ntap-20221007-0008/"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]}},"nvd":{"publishedDate":"2022-08-29 15:15:00","lastModifiedDate":"2022-12-09 18:00:00","problem_types":["CWE-273"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:*:*","versionEndExcluding":"6.2.0-7","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:advanced_virtualization:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"358","Ordinal":"227016","Title":"CVE-2022-0358","CVE":"CVE-2022-0358","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"358","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}