cve.bz

CVE-2021-30465 Race Condition

8.5 highEPSS 10%Fix available

High (8.5). EPSS 10% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/opencontainers/runc 1.0.0-rc95.

On this page
runc before 1.0.0-rc95 allows a Container Filesystem Breakout via Directory Traversal. To exploit the vulnerability, 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.

Severity

CVSS 3.1

8.5 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
10% (unchanged from 10% a week ago; 10% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-30465 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-30465?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-30465?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-30465 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linuxfoundation:runcthrough 0.1.1
linuxfoundation:runc1.0.0:rc1
linuxfoundation:runc1.0.0:rc10
linuxfoundation:runc1.0.0:rc2
linuxfoundation:runc1.0.0:rc3
linuxfoundation:runc1.0.0:rc4
linuxfoundation:runc1.0.0:rc5
linuxfoundation:runc1.0.0:rc6
linuxfoundation:runc1.0.0:rc7
linuxfoundation:runc1.0.0:rc8
linuxfoundation:runc1.0.0:rc9
linuxfoundation:runc1.0.0:rc90
linuxfoundation:runc1.0.0:rc91
linuxfoundation:runc1.0.0:rc92
linuxfoundation:runc1.0.0:rc93
linuxfoundation:runc1.0.0:rc94
fedoraproject:fedora33
fedoraproject:fedora34

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c3xm-pvg7-gh7rGogithub.com/opencontainers/runc<1.0.0-rc951.0.0-rc95
GO-2022-0914Gogithub.com/opencontainers/runc<1.0.0-rc951.0.0-rc95

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10runc1.0.0~rc6+dfsg1-3+deb10u2DLA-3369-1
Debian12, 13, 14runc1.0.0~rc93+ds1-5DEBIAN-CVE-2021-30465
Ubuntu18.04:LTSrunc1.0.0~rc93-0ubuntu1~18.04.2UBUNTU-CVE-2021-30465 USN-4960-1
Ubuntu20.04:LTSrunc1.0.0~rc93-0ubuntu1~20.04.2UBUNTU-CVE-2021-30465 USN-4960-1
UbuntuPro:16.04:LTSrunc1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm2UBUNTU-CVE-2021-30465 USN-4867-1
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more0:1.11.6-8.module+el8.4.0+10193+e90fd8ebRHSA-2021:2291
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more0:1.19.7-1.module+el8.4.0+11310+8c67a752RHSA-2021:2370
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more0:1.19.7-2.module+el8.4.0+11311+9da8acfbRHSA-2021:2371
Red Hatenterprise_linux:8::appstreamcockpit-podman0:11-1.module+el8.4.0+10193+e90fd8ebRHSA-2021:2291
Red Hatenterprise_linux:8::appstreamcockpit-podman0:29-2.module+el8.4.0+11310+8c67a752RHSA-2021:2370
Red Hatenterprise_linux:8::appstreamcockpit-podman0:29-2.module+el8.4.0+11311+9da8acfbRHSA-2021:2371
Red Hatenterprise_linux:8::appstreamconmon2:2.0.15-1.module+el8.4.0+10193+e90fd8ebRHSA-2021:2291
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource2:2.0.26-1.module+el8.4.0+11310+8c67a752RHSA-2021:2370
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource2:2.0.26-3.module+el8.4.0+11311+9da8acfbRHSA-2021:2371
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.130.0-1.module+el8.4.0+10193+e90fd8ebRHSA-2021:2291
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.158.0-1.module+el8.4.0+11310+8c67a752RHSA-2021:2370
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.162.0-1.module+el8.4.0+11311+9da8acfbRHSA-2021:2371
126 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 12 morerunc1.0.2-23.1SUSE-SU-2021:3506-1
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 14 morerunc1.0.0~rc93-1.14.2SUSE-SU-2021:1954-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 morecontainerd1.4.11-56.1SUSE-SU-2021:3506-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 moredocker20.10.9_ce-156.1SUSE-SU-2021:3506-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 13 morecontainerd1.4.4-5.32.1SUSE-SU-2021:1954-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 13 moredocker20.10.6_ce-6.49.3SUSE-SU-2021:1954-1
SUSELinux Enterprise Module for Containers 12containerd1.4.11-16.45.1SUSE-SU-2021:3336-1
SUSELinux Enterprise Module for Containers 12docker20.10.9_ce-98.72.1SUSE-SU-2021:3336-1
SUSELinux Enterprise Module for Containers 12runc1.0.0~rc93-16.11.1SUSE-SU-2021:1885-1
SUSELinux Enterprise Module for Containers 12runc1.0.2-16.14.1SUSE-SU-2021:3336-1
openSUSELeap 15.2containerd1.4.11-lp152.2.12.1openSUSE-SU-2021:1404-1
openSUSELeap 15.2containerd1.4.4-lp152.2.6.1openSUSE-SU-2021:0878-1
openSUSELeap 15.2docker20.10.6_ce-lp152.2.12.1openSUSE-SU-2021:0878-1
openSUSELeap 15.2docker20.10.9_ce-lp152.2.18.1openSUSE-SU-2021:1404-1
openSUSELeap 15.2runc1.0.0~rc93-lp152.2.3.1openSUSE-SU-2021:0878-1
openSUSELeap 15.2runc1.0.2-lp152.2.9.1openSUSE-SU-2021:1404-1
openSUSELeap 15.3containerd1.4.11-56.1openSUSE-SU-2021:3506-1
openSUSELeap 15.3containerd1.4.4-5.32.1openSUSE-SU-2021:1954-1
openSUSELeap 15.3docker20.10.6_ce-6.49.3openSUSE-SU-2021:1954-1
openSUSELeap 15.3docker, docker-kubic20.10.9_ce-156.1openSUSE-SU-2021:3506-1
openSUSELeap 15.3runc1.0.0~rc93-1.14.2openSUSE-SU-2021:1954-1
openSUSELeap 15.3runc1.0.2-23.1openSUSE-SU-2021:3506-1
2 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8cockpit-podman11-1.module_el8.5.0+108+00865455ALSA-2021:2291
AlmaLinux8cockpit-podman11-1.module_el8.5.0+2635+e4386a39ALSA-2021:2291
AlmaLinux8cockpit-podman29-2.module_el8.6.0+2876+9ed4eae2ALSA-2021:2370 ALSA-2021:2371
AlmaLinux8conmon2:2.0.15-1.module_el8.5.0+108+00865455ALSA-2021:2291
AlmaLinux8conmon2:2.0.15-1.module_el8.5.0+2635+e4386a39ALSA-2021:2291
AlmaLinux8conmon2:2.0.26-1.module_el8.6.0+2876+9ed4eae2ALSA-2021:2370
AlmaLinux8conmon2:2.0.26-3.module_el8.7.0+3406+a17c4180ALSA-2021:2371
AlmaLinux8container-selinux2:2.130.0-1.module_el8.5.0+108+00865455ALSA-2021:2291
AlmaLinux8container-selinux2:2.130.0-1.module_el8.5.0+2635+e4386a39ALSA-2021:2291
AlmaLinux8containernetworking-plugins0.8.3-4.module_el8.5.0+108+00865455ALSA-2021:2291
AlmaLinux8containernetworking-plugins0.8.3-4.module_el8.5.0+2635+e4386a39ALSA-2021:2291
AlmaLinux8containernetworking-plugins0.9.1-1.module_el8.6.0+2876+9ed4eae2ALSA-2021:2370 ALSA-2021:2371
20 more for AlmaLinux in the JSON.
Rocky Linux8buildah0:1.11.6-8.module+el8.4.0+559+c02fa3b2RLSA-2021:2291
Rocky Linux8buildah0:1.19.7-1.module+el8.4.0+558+7340b765RLSA-2021:2370
Rocky Linux8buildah0:1.19.7-2.module+el8.4.0+556+40122d08RLSA-2021:2371
Rocky Linux8cockpit-podman0:11-1.module+el8.4.0+559+c02fa3b2RLSA-2021:2291
Rocky Linux8cockpit-podman0:11-1.module+el8.5.0+708+6758137dRLSA-2021:2291
Rocky Linux8cockpit-podman0:11-1.module+el8.5.0+770+e2f49861RLSA-2021:2291
Rocky Linux8cockpit-podman0:29-2.module+el8.4.0+556+40122d08RLSA-2021:2370 RLSA-2021:2371
Rocky Linux8cockpit-podman0:29-2.module+el8.5.0+709+440d5e7eRLSA-2021:2370 RLSA-2021:2371
Rocky Linux8cockpit-podman0:29-2.module+el8.6.0+783+10209741RLSA-2021:2370 RLSA-2021:2371
Rocky Linux8cockpit-podman0:29-2.module+el8.7.0+1076+9b1c11c1RLSA-2021:2370 RLSA-2021:2371
Rocky Linux8conmon2:2.0.15-1.module+el8.4.0+559+c02fa3b2RLSA-2021:2291
Rocky Linux8conmon2:2.0.15-1.module+el8.5.0+708+6758137dRLSA-2021:2291
76 more for Rocky Linux in the JSON.
Alpinev3.12, v3.13, v3.14 and 10 morerunc1.0.0_rc95-r0ALPINE-CVE-2021-30465
Alpinev3.15, v3.16, v3.17 and 7 morek3s1.21.1.1-r0ALPINE-CVE-2021-30465
Azure Linux3buildah1.41.4-2AZL-44262

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

OpenShift Container Platform OCP 3.11 be default uses Docker from RHEL-7 extras repository. If using OCP 3.11 upgrade docker on all nodes to a fixed version from the RHEL-7 extras channel. CRI-O could be used instead of Docker on OCP 3.11 and in that case upgrade the runc version from the OCP rpm repository when it becomes available.

Red Hat's mitigation

The impact of the vulnerability is reduced if SELinux is in enforcing mode using the container-selinux policy. The container-selinux policy is installed and enabled by default on RHEL 7 and 8, as well as OpenShift Container Platform 3.x and 4.x.

Customers running affected versions of RHEL are strongly recommended to apply RPM updates from the RHEL 8 channel and RHEL 7 Extras channel as soon as errata becomes available.

Customers running affected versions of OpenShift Container Platform are strongly recommended to upgrade as soon as errata becomes available.

Customers of OpenShift Online or OpenShift Dedicated have SELinux enabled in enforcing mode in every host across all clusters. Therefore, It is expected that OSO/OSD both have a reduced impact from this issue, with security patches made available during upcoming maintenance windows.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7 Extrasdocker-2:1.13.1-206.git7d71120.el7_9Fixed 2021-05-31RHSA-2021:2144
Red Hat Enterprise Linux 7 Extrasrunc-0:1.0.0-69.rc10.el7_9Fixed 2021-05-31RHSA-2021:2145
Red Hat Enterprise Linux 8container-tools:2.0-8040020210519150700.c0c392d5Fixed 2021-06-08RHSA-2021:2291
Red Hat Enterprise Linux 8container-tools:3.0-8040020210608070614.c0c392d5Fixed 2021-06-10RHSA-2021:2370
Red Hat Enterprise Linux 8container-tools:rhel8-8040020210608072148.c0c392d5Fixed 2021-06-10RHSA-2021:2371
Red Hat Enterprise Linux 8.2 Extended Update Supportcontainer-tools:2.0-8020020210525070123.28c38760Fixed 2021-06-08RHSA-2021:2292
Red Hat OpenShift Container Platform 3.11runc-0:1.0.0-69.rc10.el7_9Fixed 2021-06-09RHSA-2021:2150
Red Hat OpenShift Container Platform 4.5openshift-0:4.5.0-202105121820.p0.git.d8ef5ad.el7Fixed 2021-05-26RHSA-2021:2057
Red Hat OpenShift Container Platform 4.5runc-0:1.0.0-74.rhaos4.5.gitd2c3b70.el7Fixed 2021-05-26RHSA-2021:2057
Red Hat OpenShift Container Platform 4.6openshift-0:4.6.0-202105150940.p0.git.9caf8fe.el7Fixed 2021-05-26RHSA-2021:1566
Red Hat OpenShift Container Platform 4.6runc-0:1.0.0-87.rhaos4.6.git23384e2.el7Fixed 2021-05-26RHSA-2021:1566
Red Hat OpenShift Container Platform 4.7runc-0:1.0.0-96.rhaos4.8.gitcd80260.el7Fixed 2021-05-24RHSA-2021:1562
Red Hat OpenShift Container Platform 4.8atomic-openshift-service-idler-0:4.8.0-202106281541.p0.git.39cfc66.assembly.stream.el8Fixed 2021-07-27RHSA-2021:2437
Red Hat OpenShift Container Platform 4.8butane-0:0.12.1-1.rhaos4.8.el8Fixed 2021-07-27RHSA-2021:2437
Red Hat OpenShift Container Platform 4.8console-login-helper-messages-0:0.20.3-1.rhaos4.8.el8Fixed 2021-07-27RHSA-2021:2437
Red Hat OpenShift Container Platform 4.8coreos-installer-0:0.9.0-6.rhaos4.8.el8Fixed 2021-07-27RHSA-2021:2437
Red Hat Advanced Cluster Management for Kubernetes 2multicloud-operators-subscriptionNot affected
Red Hat Advanced Cluster Management for Kubernetes 2multicloud-operators-subscription-releaseNot affected
Red Hat Enterprise Linux 8container-tools:1.0/runcOut of support scope
Red Hat Enterprise Linux 9runcNot affected
52 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-30465.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON