BreachSpiderVerified, not vibes

CVE-2022-0358 in Qemu and 1 more product

High 7.8

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 wr...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.17.8
EPSS0.3%
EPSS percentile19th
FixSee advisory

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Qemu Qemu < 6.2.0-7
Redhat Enterprise Linux 8.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-0358
BreachSpider IDBS-2022-GLOBAL-323419-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2022-08-29
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-273: CWE-273

Analysis AI-written, not human-reviewed

A flaw in the QEMU virtio-fs shared file system daemon (virtiofsd) allows a local guest user to create files with unintended group ownership in SGID directories, potentially leading to unauthorized access or privilege escalation.

The attack vector involves a local guest user exploiting the SGID bit on writable directories to create files with group ownership that the user does not belong to, which could be leveraged for unauthorized access or privilege escalation.

Questions

What is CVE-2022-0358?

A flaw in the QEMU virtio-fs shared file system daemon (virtiofsd) allows a local guest user to create files with unintended group ownership in SGID directories, potentially leading to unauthorized access or privilege escalation.

What is the CVSS score for CVE-2022-0358?

CVE-2022-0358 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.3%.

Is CVE-2022-0358 actively exploited?

No confirmed active exploitation of CVE-2022-0358 as of 2026-09-25.

How do I remediate CVE-2022-0358?

Priority: MEDIUM. Advisory: https://access.redhat.com/security/cve/CVE-2022-0358

What systems are affected by CVE-2022-0358?

CVE-2022-0358 affects Qemu Qemu; Redhat Enterprise Linux.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Qemu","product":"Qemu","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.