Top Container Escape: The runC Vulnerability (CVE-2019-5736)
This critical flaw allowed a malicious container to overwrite the host's runC binary, granting root-level code execution on the host system. It impacted Docker, Kubernetes, containerd, and CRI-O, necessitating immediate upgrades to runc versions 1.0-rc6.2 or later.
The top 3
- Who Uncovered runC's Critical Flaw?: The CVE-2019-5736 runC vulnerability was originally discovered by Adam Iwaniuk and Borys Popławski, who were also maintainers of runC itself, and publicly disclosed on February 11, 2019.
- How runC's /proc/self/exe Was Exploited: The exploit leveraged a file descriptor mishandling related to `/proc/self/exe`, a symbolic link to the currently running executable. A malicious container could trick runC into executing itself, then use its open file descriptors to overwrite the host's runC binary, thereby gaining root-level access on the host system.
- Top Defenses Against runC Container Escapes: Rated with a high CVSS score of 7.2, CVE-2019-5736 posed a critical threat to Docker, containerd, and CRI-O environments. Key mitigations included upgrading runC to version 1.0-rc6.2 or later, updating Docker to 18.09.2+, and implementing the principle of least privilege by avoiding running containers as root. The patch introduced `memfd_create(2)` and file sealing to create immutable, memory-backed copies of runC.
Sources
Open the full topic