Skip to content
RCE Write-up Advanced

Leaky Vessels: Docker and runc container breakout vulnerabilities

Four vulnerabilities in container infrastructure components (runc and Docker Buildkit) allow an attacker to escape from a container and gain unauthorised access to the underlying host operating system. This could lead to access to sensitive data and further attacks.

Rory McNamara Follow

Published on snyk.io

Snyk security researcher Rory McNamara, with the Snyk Security Labs team, identified four vulnerabilities — dubbed "Leaky Vessels" — in core container infrastructure components that allow container escapes.

Rory McNamara (@PsychoMario), on snyk.io

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a combination of an order-of-operations flaw in runc's handling of the working directory and leaked file descriptors, plus race conditions and privilege-check gaps in Buildkit.

Impact

An attacker could escape the container and gain unauthorised access to the host operating system, potentially accessing sensitive data and launching further attacks.

What the attacker needed

Ability to run or build a malicious container image

The fix

The vulnerabilities were fixed by updating runc to version 1.1.12 and Docker Buildkit to 0.12.5, along with updates from other vendors.

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.

Containers are like lightweight virtual machines used to run applications. A container escape is when someone inside a container breaks out and gets access to the main computer (host) that runs the container. These bugs let an attacker do that, so they could read or change anything on the host.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.