Skip to content
RCE Write-up Advanced

Detecting exploits of CVE-2019-5736: runc container breakout with Falco

A vulnerability in runC, the container runtime used by Docker and Kubernetes, allows a compromised container to overwrite the host's runC binary and gain root-level execution on the host. An attacker can exploit this when a new container is started from their image or when they attach to an existing container they have write access to.

sysdig.com

Published on sysdig.com

Subscribe to Threat Research

The author, on sysdig.com

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 flaw in runC that allows a container process to write to the host's runC binary through /proc/self/fd, leading to its overwrite.

Impact

An attacker could gain root-level execution on the host and access underlying files, potentially compromising the entire host and other containers.

What the attacker needed

Compromised container; attacker's image used for new container; or write access to existing container

The fix

The vulnerability was fixed in runC; users should patch their systems.

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 that share the host's operating system. runC is a program that helps start and manage containers. This bug lets someone who controls a container replace a key program on the host computer, giving them full control over 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.