(0Day) Docker Desktop cli-plugins Incorrect Permission Assignment Local Privilege Escalation Vulnerability
Docker Desktop's cli-plugins feature has incorrect folder permissions, allowing a local attacker who can escape a container and run low-privileged code in the Docker Hyper-V VM to escalate privileges and execute arbitrary code on the host as the current user.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges on affected installations of Docker Desktop for Windows. An attacker must first obtain the ability to escape the container and execute low-privileged code within the Docker Hyper-V VM in order to exploit this vulnerability.
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
Likely incorrect permission assignment on folders used by the Docker cli-plugins functionality.
Impact
An attacker who first escapes the container and runs low-privileged code in the Docker Hyper-V VM could escalate privileges and execute arbitrary code on the host system as the current user.
What the attacker needed
Escape the container; execute low-privileged code in Docker Hyper-V VM
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.
Docker Desktop runs containers inside a small virtual machine on Windows. This report says that some folders used by Docker's command-line plugins have permissions that are too open. If an attacker can already get inside that virtual machine and run code, they can use those folders to run code on the real Windows host with the user's rights.
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.