(0Day) Docker Desktop System Editor Uncontrolled Search Path Element Privilege Escalation Vulnerability
The Docker Desktop system/editor endpoint executes a program from an unsecured location, allowing a local attacker who already has high-privileged code inside the Docker Hyper-V VM to escalate privileges and run 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. An attacker must first obtain the ability to escape the container and execute high-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 the system/editor endpoint loads an executable from a directory that is not properly secured, allowing a local attacker to place a malicious program there.
Impact
An attacker with prior high-privileged code in the Docker Hyper-V VM could escalate privileges and execute arbitrary code on the host as the current user; the vendor rejected the report because exploitation required prior privileged access.
What the attacker needed
Escape the container; execute high-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.
This is a local privilege escalation bug in Docker Desktop. An attacker who has already broken out of a container and has high-level access inside the Docker virtual machine can make Docker Desktop run a program from a folder they control, which then runs on the host computer with the user's permissions. The vendor rejected the report because getting that initial access is already a serious compromise.
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.