Skip to content
Access control Advisory Intermediate CVE-2024-36486

Parallels Desktop prl_vmarchiver Unarchive Hard Link Privilege Escalation

The prl_vmarchiver tool, running as root, decompresses archived VM files and writes them back without checking for hard links. An attacker can replace a VM file with a hard link to a root-owned file and supply a malicious compressed payload, causing the tool to overwrite the root-owned file with attacker-controlled content, leading to privilege escalation.

KPC Follow

Originally disclosed on Cisco Talos

High 7.8 View original

A privilege escalation vulnerability exists in the virtual machine archive restoration functionality of Parallels Desktop for Mac version 20.1.1 (55740). When an archived virtual machine is restored, the prlvmarchiver tool decompresses the file and writes the content back to its original location using root privileges.

KPC, on Cisco Talos

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 prl_vmarchiver tool, running as root, follows hard links when writing decompressed data, allowing an attacker to overwrite arbitrary root-owned files.

Impact

A low-privilege user could overwrite arbitrary root-owned files and escalate privileges to root.

What the attacker needed

Local user account; ability to create hard links; Parallels Desktop installed

How it was found

  1. Create a hard link to a root-owned file with a .hds, .mem, or .dmp extension inside the VM directory.
  2. Archive the VM using prlctl, which compresses the hard-linked file and deletes its contents.
  3. Replace the generated archive chunk and header files with attacker-controlled compressed data containing a malicious payload.
  4. Unarchive the VM using prlctl, causing prl_vmarchiver to decompress the payload and write it to the hard-linked root-owned file.
  5. Restart the system to load the modified launch daemon, which executes the attacker's payload with root privileges.

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.

A hard link is a way to give a file two names; both names point to the same data. The archiver runs with high privileges and writes decompressed data to a file name, but it does not check if that file name is actually a hard link to a sensitive system file. By making the archiver write to a hard link, an attacker can change the contents of a protected file and gain higher privileges.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by KPC

View all

102 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.