Exploring Hidden Vulnerabilities in Legacy Docker Versions
An overlooked vulnerability in older Docker and runc versions without the openat2 syscall allows attackers to leak file descriptors and access the host filesystem via the /run/runc/<container>/ path. This enables unauthorised access to sensitive host files.
medium.com
Published on medium.com
The original lives on medium.com
We do not hold its text, 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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a file descriptor leak in older Docker/runc when the openat2 syscall is unavailable, allowing container processes to retain access to host files via /run/runc/<container>/.
Impact
Attackers could access sensitive host files on legacy systems, though only older Docker versions without openat2 are affected.
What the attacker needed
Legacy Docker/runc without openat2; access to run a container
How it was found
- Set up an Ubuntu 18.04 environment with an older Docker version.
- Confirm the vulnerability by testing for file descriptor leaks.
- Exploit the leaked file descriptors to access sensitive host files.
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 write-up has not been written yet. The Original tab links to the source.
Docker is software that runs applications in isolated containers. A file descriptor is a handle a program uses to read or write a file. In some old versions, a bug let a program inside a container keep a handle to a file on the host machine, so it could read files it should not see.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.