CVE-2012-2652 Path traversal in n/a
Local attackers can overwrite or read arbitrary files via symlink attacks on temporary files in QEMU snapshot mode.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-2652?
CVE-2012-2652 is a medium-severity path traversal vulnerability in Qemu Qemu, published on 7 Aug 2012. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
The bdrv_open function in Qemu 1.0 does not properly handle the failure of the mkstemp function, when in snapshot node, which allows local users to overwrite or read arbitrary files via a symlink attack on an unspecified temporary file.
Which versions are affected by CVE-2012-2652?
It affects 1 product.
Products include Qemu Qemu.
How do I fix CVE-2012-2652?
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-2012-2652 being exploited?
There is no known exploitation of CVE-2012-2652 in the wild and no public exploit code.
Other vulnerabilities in Qemu Qemu
Sources
Also known as DEBIAN-CVE-2012-2652, GHSA-47rg-xchh-xj5g.