PT-2021-3569 · Runc+8 · Runc+8

·

CVE-2021-30465

·

Published

2016-08-03

·

Updated

2026-07-21

CVSS v2.0

8.5

High

VectorAV:N/AC:M/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions runc versions prior to 1.0.0-rc95
Description The issue allows a container filesystem breakout via directory traversal. To exploit this, an attacker must be able to create multiple containers with a fairly specific mount configuration. The problem occurs via a symlink-exchange attack that relies on a race condition, specifically a time-of-check-to-time-of-use (TOCTTOU) flaw. This can be exploited by creating a symlink in a volume to a top-level directory where volumes are sourced from, and then using that symlink as the target of a mount. The source of the mount is an attacker-controlled directory, allowing the attacker to bind-mount the host filesystem into the container. While recommended container hardening mechanisms such as LSMs (AppArmor/SELinux) and user namespaces can restrict the damage, they do not block this attack outright.
Recommendations For versions prior to 1.0.0-rc95, update to version 1.0.0-rc95 or later to fix the issue. As a temporary workaround, consider restricting access to the vulnerable runc functionality until a patch is applied, and enforce running containers with more confined security profiles, such as reduced capabilities, not running code as root in the container, user namespaces, AppArmor/SELinux, and seccomp.

Fix

DoS

Path traversal

Time Of Check To Time Of Use

Race Condition

Link Following

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2021:2291
ALSA-2021:2370
ALSA-2021:2371
ALT-PU-2016-1817
ALT-PU-2021-2028
ALT-PU-2021-2029
ALT-PU-2022-1244
ALT-PU-2022-1248
AZL-44262
BDU:2021-03670
CESA-2021_2291
CESA-2021_2370
CESA-2021_2371
CLEANSTART-2026-MW42038
CVE-2021-30465
DLA-3369-1
GHSA-C3XM-PVG7-GH7R
GO-2022-0914
MGASA-2021-0412
OESA-2021-1215
OPENSUSE-SU-2021:0878-1
OPENSUSE-SU-2021:1404-1
OPENSUSE-SU-2021:1954-1
OPENSUSE-SU-2021:3506-1
OPENSUSE-SU-2021_0878-1
OPENSUSE-SU-2021_1404-1
OPENSUSE-SU-2021_1954-1
OPENSUSE-SU-2021_3506-1
OPENSUSE-SU-2024:11358-1
OPENSUSE-SU-2025:15424-1
RHSA-2021:1562
RHSA-2021:1566
RHSA-2021:2057
RHSA-2021:2144
RHSA-2021:2145
RHSA-2021:2150
RHSA-2021:2291
RHSA-2021:2292
RHSA-2021:2370
RHSA-2021:2371
RHSA-2021:2437
RHSA-2021_2291
RHSA-2021_2370
RHSA-2021_2371
RLSA-2021:2291
RLSA-2021:2370
RLSA-2021:2371
ROSA-SA-2024-2393
SUSE-SU-2021:1885-1
SUSE-SU-2021:1954-1
SUSE-SU-2021:3336-1
SUSE-SU-2021:3506-1
SUSE-SU-2021_1885-1
USN-4867-1
USN-4960-1

Affected Products

Alt Linux
Almalinux
Centos
Linuxmint
Red Hat
Rocky Linux
Suse
Ubuntu
Runc