Skip to content
Path traversal Advisory Advanced

(0Day) Docker Desktop credentialHelper Directory Traversal Privilege Escalation Vulnerability

A directory traversal flaw in Docker Desktop's app/settings endpoint allows a local attacker who already has high-privileged code execution inside the Docker Hyper-V VM to escalate privileges and run arbitrary code on the host as the current user. The vendor rejected the report because exploitation requires prior privileged access.

Nitesh Surana Follow

Originally disclosed on Zero Day Initiative

High 7.5 View original

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.

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 the app/settings endpoint fails to validate a user-supplied path in the credentialHelper value before using it in file operations.

Impact

An attacker with prior high-privileged code execution 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 of this prerequisite.

What the attacker needed

Prior high-privileged code in Docker VM; container escape

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 virtual machine on your computer. This bug lets someone who already has high-level control inside that virtual machine trick Docker Desktop into reading or writing files outside its intended folder, which can let them run code on your actual computer as your user. The catch is that the attacker must already have that high-level access, so it is not a way in from scratch.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

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.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.