Notice on runc Vulnerability that Allows a Container Filesystem Breakout via Directory Traversal (CVE-2021-30465)
runc is vulnerable to a symlink exchange attack whereby an attacker can request a seemingly-innocuous pod configuration that actually results in the host filesystem being bind-mounted into the container (allowing for a container escape). CVE-2021-30465 has been assigned for this vulnerability. Currently, the details and POC of this vulnerability have been disclosed and the risk is high.
Vulnerability Details
| Vulnerability Type | CVE-ID | Discovered |
|---|---|---|
| Container escape | 2021-05-31 |
Threat Severity
Critical
(Severity: low, moderate, important, and critical)
Impact and Risks
An attacker can create a malicious pod, mount the host directory to the container, and exploit a runc symlink and race condition vulnerability, allowing container escape and host filesystem access.
Impact Scope
All versions of runc on CCE cluster nodes are affected by this vulnerability.
Workarounds and Mitigation Measures
- Restrict untrusted users from creating workloads, especially configuring volume mounting parameters.
- Restrict the permissions of the container.
- Use a non-root user.
- Use capabilities to restrict the privileges of containers, such as CAP_DAC_OVERRIDE, CAP_DAC_READ_SEARCH, and CAP_SYS_ADMIN.
- Use seccomp to restrict the attacker's system call permissions on the host kernel. For details, see Restrict a Container's Syscalls with Seccomp.
Solution
CCE will release patches for this vulnerability soon. Please follow the official announcement.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.