CVEfocus › CVE database › CVE-2024-21626

CVE-2024-21626runc container breakout through process.cwd trickery and leaked fds

CVSS 8.6 HighEPSS 11.8% (higher than 97% of CVEs)Published 2024-01-31Updated 2026-09-17Assigner: GitHub_M

runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. In runc 1.1.11 and earlier, due to an internal file descriptor leak, an attacker could cause a newly-spawned container process (from runc exec) to have a working directory in the host filesystem namespace, allowing for a container escape by giving access to the host filesystem ("attack 2"). The same attack could be used by a malicious image to allow a container process to gain access to the host filesystem through runc run ("attack 1"). Variants of attacks 1 and 2 could be also be used to overwrite semi-arbitrary host binaries, allowing for complete container escapes ("attack 3a" and "attack 3b"). runc 1.1.12 includes patches for this issue.

CWE-200CWE-403CWE-668

What to do

Likely to be exploited: EPSS gives a 12% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

98Fixed
2Fix pending
20Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04runcNot affected
vulnerable_code_not_present
Ubuntu 22.04runcFixed1.1.7-0ubuntu1~22.04.2UBUNTU-CVE-2024-21626
Ubuntu 20.04runcFixed1.1.7-0ubuntu1~20.04.2UBUNTU-CVE-2024-21626
Ubuntu 18.04runcFix pending1.1.4-0ubuntu1~18.04.2+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-21626
Ubuntu 16.04runcFix pending
Debian 14runcFixed1.1.12+ds1-1DEBIAN-CVE-2024-21626
Debian 13runcFixed1.1.12+ds1-1DEBIAN-CVE-2024-21626
Debian 12runcFixed1.1.5+ds1-1+deb12u1DEBIAN-CVE-2024-21626
Red Hat Enterprise Linux 10aardvark-dnsNot affected
Red Hat Enterprise Linux 10buildahNot affected
Red Hat Enterprise Linux 10buildah-testsNot affected
Red Hat Enterprise Linux 10containers-commonNot affected
Red Hat Enterprise Linux 10containers-common-extraNot affected
Red Hat Enterprise Linux 10netavarkNot affected
Red Hat Enterprise Linux 10podmanNot affected
Red Hat Enterprise Linux 10podman-dockerNot affected
Red Hat Enterprise Linux 10podman-remoteNot affected
Red Hat Enterprise Linux 10podman-testsNot affected
Red Hat Enterprise Linux 9buildahNot affected
Red Hat Enterprise Linux 9buildah-testsNot affected
Red Hat Enterprise Linux 9podmanNot affected
Red Hat Enterprise Linux 9podman-catatonitNot affected
Red Hat Enterprise Linux 9podman-dockerNot affected
Red Hat Enterprise Linux 9podman-gvproxyNot affected
Red Hat Enterprise Linux 9podman-pluginsNot affected
Red Hat Enterprise Linux 9podman-remoteNot affected
Red Hat Enterprise Linux 9podman-testsNot affected
Red Hat Enterprise Linux 9runcFixed4:1.1.12-1.el9_3RHSA-2024:0670
Red Hat Enterprise Linux 8aardvark-dnsFixed2:1.7.0-1.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8buildahFixed1:1.31.3-3.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8buildah-testsFixed1:1.31.3-3.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8cockpit-podmanFixed0:46-1.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8conmonFixed3:2.1.8-1.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8container-selinuxFixed2:2.205.0-3.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8containernetworking-pluginsFixed1:1.1.1-6.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8containers-commonFixed2:1-38.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8critFixed0:3.15-3.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8criuFixed0:3.15-3.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8criu-develFixed0:3.15-3.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8criu-libsFixed0:3.15-3.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8crunFixed0:1.8.7-1.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8fuse-overlayfsFixed0:1.9-2.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8libslirpFixed0:4.4.0-1.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8libslirp-develFixed0:4.4.0-1.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8netavarkFixed2:1.0.1-38.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8oci-seccomp-bpf-hookFixed0:1.2.9-1.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8podmanFixed2:4.0.2-26.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8podman-catatonitFixed3:4.6.1-8.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8podman-dockerFixed2:4.0.2-26.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8podman-gvproxyFixed3:4.6.1-8.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8podman-pluginsFixed3:4.6.1-8.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8podman-remoteFixed3:4.6.1-8.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8podman-testsFixed2:4.0.2-26.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8python-podmanFixed0:4.6.0-2.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8python3-criuFixed0:3.18-4.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8python3-podmanFixed0:4.6.0-2.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8runcFixed1:1.1.12-1.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8skopeoFixed2:1.13.3-3.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8skopeo-testsFixed2:1.13.3-3.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8slirp4netnsFixed0:1.2.1-1.module+el8.9.0+21243+a586538bRHSA-2024:0748
Red Hat Enterprise Linux 8toolboxFixed0:0.0.99.4-5.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8toolbox-testsFixed0:0.0.99.4-5.module+el8.9.0+21242+944321bbRHSA-2024:0752
Red Hat Enterprise Linux 8udicaFixed0:0.2.6-4.module+el8.9.0+21242+944321bbRHSA-2024:0752
AlmaLinux 9runcFixed4:1.1.12-1.el9_3ALSA-2024:0670
AlmaLinux 8aardvark-dnsFixed2:1.7.0-1.module_el8.9.0+3657+d86e192fALSA-2024:0748
AlmaLinux 8buildahFixed1:1.24.6-7.module_el8.9.0+3627+db8ec155ALSA-2024:0752
AlmaLinux 8buildah-testsFixed1:1.24.6-7.module_el8.9.0+3627+db8ec155ALSA-2024:0748
AlmaLinux 8cockpit-podmanFixed46-1.module_el8.7.0+3344+5bcd850fALSA-2024:0752
AlmaLinux 8conmonFixed2:2.1.4-2.module_el8.9.0+3627+db8ec155ALSA-2024:0748
AlmaLinux 8container-selinuxFixed2:2.205.0-3.module_el8.9.0+3627+db8ec155ALSA-2024:0752
AlmaLinux 8containernetworking-pluginsFixed1:1.3.0-8.module_el8.9.0+3717+81096349ALSA-2024:0748
AlmaLinux 8containers-commonFixed2:1-71.module_el8.9.0+3717+81096349ALSA-2024:0748
AlmaLinux 8critFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2024:0748
AlmaLinux 8criuFixed3.18-4.module_el8.9.0+3643+9234dc3bALSA-2024:0748
AlmaLinux 8criu-develFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2024:0752
AlmaLinux 8criu-libsFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2024:0748
AlmaLinux 8crunFixed1.8.7-1.module_el8.9.0+3643+9234dc3bALSA-2024:0748
AlmaLinux 8fuse-overlayfsFixed1.9-2.module_el8.9.0+3627+db8ec155ALSA-2024:0752
AlmaLinux 8libslirpFixed4.4.0-1.module_el8.6.0+3137+d33c3efbALSA-2024:0748
AlmaLinux 8libslirp-develFixed4.4.0-1.module_el8.6.0+3137+d33c3efbALSA-2024:0748
AlmaLinux 8netavarkFixed2:1.7.0-2.module_el8.9.0+3717+81096349ALSA-2024:0748
AlmaLinux 8oci-seccomp-bpf-hookFixed1.2.5-2.module_el8.8.0+3468+16b86c82ALSA-2024:0752
AlmaLinux 8podmanFixed3:4.6.1-8.module_el8.9.0+3717+81096349ALSA-2024:0748
AlmaLinux 8podman-catatonitFixed2:4.0.2-26.module_el8.9.0+3722+7fd8ab2b.alma.1ALSA-2024:0752
AlmaLinux 8podman-dockerFixed2:4.0.2-26.module_el8.9.0+3722+7fd8ab2b.alma.1ALSA-2024:0752
AlmaLinux 8podman-gvproxyFixed3:4.6.1-8.module_el8.9.0+3717+81096349ALSA-2024:0748
AlmaLinux 8podman-pluginsFixed3:4.6.1-8.module_el8.9.0+3717+81096349ALSA-2024:0748
AlmaLinux 8podman-remoteFixed3:4.6.1-8.module_el8.9.0+3717+81096349ALSA-2024:0748
AlmaLinux 8podman-testsFixed2:4.0.2-26.module_el8.9.0+3722+7fd8ab2b.alma.1ALSA-2024:0752
AlmaLinux 8python3-criuFixed3.18-4.module_el8.9.0+3643+9234dc3bALSA-2024:0748
AlmaLinux 8python3-podmanFixed4.6.0-2.module_el8.9.0+3717+81096349ALSA-2024:0748
AlmaLinux 8runcFixed1:1.1.12-1.module_el8.9.0+3722+7fd8ab2bALSA-2024:0752
AlmaLinux 8skopeoFixed2:1.6.2-9.module_el8.9.0+3687+dcd7ef8f.alma.1ALSA-2024:0748
AlmaLinux 8skopeo-testsFixed2:1.13.3-3.module_el8.9.0+3717+81096349ALSA-2024:0748
AlmaLinux 8slirp4netnsFixed1.2.1-1.module_el8.9.0+3643+9234dc3bALSA-2024:0748
AlmaLinux 8toolboxFixed0.0.99.4-5.module_el8.9.0+3643+9234dc3bALSA-2024:0748
AlmaLinux 8toolbox-testsFixed0.0.99.4-5.module_el8.9.0+3643+9234dc3bALSA-2024:0748
AlmaLinux 8udicaFixed0.2.6-4.module_el8.9.0+3627+db8ec155ALSA-2024:0752
Rocky Linux 8buildahFixed1:1.24.6-7.module+el8.9.0+1445+07728297RLSA-2024:0748
Rocky Linux 8cockpit-podmanFixed0:46-1.module+el8.9.0+1445+07728297RLSA-2024:0748
Rocky Linux 8conmonFixed2:2.1.4-2.module+el8.9.0+1445+07728297RLSA-2024:0748
Rocky Linux 8container-selinuxFixed2:2.205.0-3.module+el8.9.0+1445+07728297RLSA-2024:0748
Rocky Linux 8containers-commonFixed2:1-38.module+el8.9.0+1445+07728297RLSA-2024:0748
Rocky Linux 8criuFixed0:3.15-3.module+el8.9.0+1445+07728297RLSA-2024:0748
Rocky Linux 8fuse-overlayfsFixed0:1.9-2.module+el8.9.0+1445+07728297RLSA-2024:0748
Rocky Linux 8libslirpFixed0:4.4.0-1.module+el8.9.0+1445+07728297RLSA-2024:0748
Rocky Linux 8oci-seccomp-bpf-hookFixed0:1.2.5-2.module+el8.9.0+1445+07728297RLSA-2024:0748
Rocky Linux 8python-podmanFixed0:4.0.0-2.module+el8.9.0+1445+07728297RLSA-2024:0748
Rocky Linux 8runcFixed1:1.1.12-1.module+el8.10.0+1815+5fe7415eRLSA-2024:0752
Rocky Linux 8skopeoFixed2:1.6.2-9.module+el8.9.0+1578+aa900b44RLSA-2024:0748
Rocky Linux 8slirp4netnsFixed0:1.1.8-3.module+el8.9.0+1445+07728297RLSA-2024:0748
Rocky Linux 8udicaFixed0:0.2.6-4.module+el8.9.0+1445+07728297RLSA-2024:0748
Alpine Linux 3.24runcFixed1.1.12-r0ALPINE-CVE-2024-21626
Alpine Linux 3.23runcFixed1.1.12-r0ALPINE-CVE-2024-21626
Alpine Linux 3.22runcFixed1.1.12-r0ALPINE-CVE-2024-21626
Alpine Linux 3.21runcFixed1.1.12-r0ALPINE-CVE-2024-21626
Alpine Linux 3.20runcFixed1.1.12-r0ALPINE-CVE-2024-21626
Alpine Linux 3.19runcFixed1.1.12-r0ALPINE-CVE-2024-21626
Alpine Linux 3.18runcFixed1.1.12-r0ALPINE-CVE-2024-21626
Go librarygithub.com/opencontainers/runcFixed1.1.12GHSA-xr7r-f8xq-vfvv

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.