Docker Desktop Docker Plugins Uncontrolled Search Path Element Local Privilege Escalation Vulnerability
Docker Desktop handled the plugins directory path in a way that let it run a program from an unsecured location. A local attacker who could already run low-privileged code could use this to escalate privileges and execute arbitrary code as the target 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 execute low-privileged code on the target system 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 plugins directory path was resolved to a location writable by low-privileged users, so a planted executable was loaded and run with elevated rights.
Impact
A local attacker with low-privileged code execution could escalate privileges and run arbitrary code in the context of the target user.
What the attacker needed
Local access to the machine; ability to run low-privileged code
The fix
Docker issued an update to correct the vulnerability.
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.
Some programs load extra pieces called plugins from a folder on disk. If that folder can be written to by a normal user, they can drop in their own program and the app will run it with higher rights. Here Docker Desktop looked in a folder that was not properly protected, so a user with limited access could get more power on the machine.
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.