Parallels Desktop prl_packer_inplace PVMP Unpack Directory Traversal Privilege Escalation
A directory traversal vulnerability in Parallels Desktop's PVMP package unpacking allows an attacker to write arbitrary files with root privileges. By crafting a package with a malicious file path, a low-privilege user could overwrite system files and escalate privileges to root.
A directory traversal vulnerability exists in the PVMP package unpacking functionality of Parallels Desktop for Mac version 20.2.2 (55879). This vulnerability can be exploited by an attacker to write to arbitrary files, potentially leading to privilege escalation.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The unpacking process fails to sanitise file paths in the package, allowing directory traversal sequences like '../' to escape the intended directory.
What the attacker needed
Low-privilege user account; ability to run prl_packer_inplace; ability to open a crafted .pvmp package
The fix
The vulnerability was fixed by the vendor in a patch release.
How it was found
- Use the push command of prl_packer_inplace to add a file with a path containing directory traversal characters to a .pvmp package.
- Open the package in Parallels Desktop to trigger unpacking.
- The file is written to an arbitrary location, such as a LaunchDaemon plist.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you unpack a file, the program should only write files inside the intended folder. Here, it didn't check the file paths properly, so someone could make it write files anywhere on the system, even in protected locations. This could let a normal user take control of the whole computer.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.