CVE-2023-2861 Qemu: 9pfs: improper access control on special files
A malicious guest can escape the 9p shared folder by opening special device files, potentially leading to host privilege escalation or code execution.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-2861?
CVE-2023-2861 is a medium-severity path traversal vulnerability in Qemu Qemu, published on 6 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A flaw was found in the 9p passthrough filesystem (9pfs) implementation in QEMU. The 9pfs server did not prohibit opening special files on the host side, potentially allowing a malicious client to escape from the exported 9p tree by creating and opening a device file in the shared folder.
Weakness: CWE-284
Which versions are affected by CVE-2023-2861?
It affects 1 product.
Products include Qemu Qemu.
How do I fix CVE-2023-2861?
Apply the vendor's patch.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-2861 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-2861 exists.
Other vulnerabilities in Qemu Qemu
Sources
Also known as AZL-32127, AZL-35167, DEBIAN-CVE-2023-2861, GHSA-6mxq-x623-25h9, UBUNTU-CVE-2023-2861.