Skip to content
Access control Advisory Advanced

(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.

Nitesh Surana Follow

Originally disclosed on Zero Day Initiative

High 7.8 View original

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.

Nitesh Surana (niteshsurana.com) & Nelson William Gamazo Sanchez of Trend Research, on the Zero Day Initiative

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.

More by Nitesh Surana

View all

1 more disclosed report, best first.

More from Zero Day Initiative

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.