Skip to content
RCE Disclosed report Advanced CVE-2019-5736

CVE-2019-5736: Escape from Docker and Kubernetes containers to root on host

A vulnerability in runc allowed a malicious container to overwrite the host's runc binary, enabling an attacker to escape the container and gain root on the host. This affected unpatched Docker and Kubernetes installations, including cloud services.

adam_iwaniuk Follow with borysp

Originally disclosed on HackerOne

High 8.6 View original
  • Triaged in 2 months
  • Fixed in 6 months
  • Paid in 6 months
  • Disclosed after 7 months

description here: https://blog.dragonsector.pl/2019/02/cve-2019-5736-escape-from-docker-and.html PoC: https://github.com/q3k/cve-2019-5736-poc

Some more links: https://seclists.org/oss-sec/2019/q1/119 https://access.redhat.com/security/cve/cve-2019-5736

Impact

It allows to escape from container to root on host when unpatched version of Docker and Kubernetes are used. This affects a pretty big part of internet, since a lot of services are using Docker and Kubernets these days. It has also serious impact on cloud services AWS https://aws.amazon.com/security/security-bulletins/AWS-2019-002/ and GCP https://cloud.google.com/kubernetes-engine/docs/security-bulletins#february-11-2019-runc https://kubernetes.io/blog/2019/02/11/runc-and-cve-2019-5736/

The original report as published on HackerOne, by adam_iwaniuk. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

What the attacker needed

Unpatched Docker or Kubernetes

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.

Containers are meant to keep programs isolated from the host computer. This bug let a program inside a container replace a key file on the host, so the attacker could break out and take full control of the host machine.

What is RCE?

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

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

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.