Skip to content

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

HighCVSS 8.6 EPSS 18.9% Framework module Public exploit
Published
Updated
Exploit status
Public exploit available
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

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.

Upgrade path

28 packages: 21 fixed, 2 partially fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
redhat container native virtualization All versions No fix listed No fix yet
redhat openshift power monitoring All versions No fix listed No fix yet
redhat quay All versions No fix listed No fix yet
redhat ocp tools < 0:2.440.3.1718879390-3.el8; < 0:4.15.1718879538-1.el8; All versions 0:2.440.3.1718879390-3.el8, 0:4.15.1718879538-1.el8 Partially fixed
redhat openshift < 0:4.14.42-202411280904.p0.gcf4d04f.assembly.4.14.42.el9; < 0:4.15.41-202412091343.p0.gcf9680e.assembly.4.15.41.el9; < 0:4.16.24-202411220522.p0.gcc4fedc.assembly.4.16.24.el9; < 0:4.17.7-202411280904.p0.g129334d.assembly.4.17.7.el9 +12 more 0:4.14.42-202411280904.p0.gcf4d04f.assembly.4.14.42.el9, 0:4.15.41-202412091343.p0.gcf9680e.assembly.4.15.41.el9, 0:4.16.24-202411220522.p0.gcc4fedc.assembly.4.16.24.el9, 0:4.17.7-202411280904.p0.g129334d.assembly.4.17.7.el9, 3:1.1.2-3.1.rhaos4.11.el8, 3:1.1.6-5.1.rhaos4.12.el8, 4:1.1.12-1.rhaos4.13.el8, 4:1.1.12-1.rhaos4.14.el8, v4.12.0-202503030130.p0.g7c2a284.assembly.stream.el8, v4.13.0-202503111300.p0.gb379980.assembly.stream.el8, v4.14.0-202503060906.p0.gb03f3f5.assembly.stream.el8, v4.15.0-202502171304.p0.gb74eb6d.assembly.stream.el8, v4.16.0-202501160405.p0.g300d9ad.assembly.stream.el9, v4.17.0-202501052337.p0.gbb33e13.assembly.stream.el9 Partially fixed
alpine/runc(Alpine v3.18) < 1.1.12-r0 1.1.12-r0 Fixed
alpine/runc(Alpine v3.19) < 1.1.12-r0 1.1.12-r0 Fixed
alpine/runc(Alpine v3.20) < 1.1.12-r0 1.1.12-r0 Fixed
alpine/runc(Alpine v3.21) < 1.1.12-r0 1.1.12-r0 Fixed
alpine/runc(Alpine v3.22) < 1.1.12-r0 1.1.12-r0 Fixed
alpine/runc(Alpine v3.23) < 1.1.12-r0 1.1.12-r0 Fixed
alpine/runc(Alpine v3.24) < 1.1.12-r0 1.1.12-r0 Fixed
debian/runc(Debian 12) < 1.1.5+ds1-1+deb12u1; = 1.1.5+ds1-1 1.1.5+ds1-1+deb12u1 Fixed
debian/runc(Debian 13) < 1.1.12+ds1-1 1.1.12+ds1-1 Fixed
debian/runc(Debian 14) < 1.1.12+ds1-1 1.1.12+ds1-1 Fixed
linuxfoundation runc < 1.1.12 1.1.12 Fixed
opencontainers runc(Go) >= 1.0.0-rc93, < 1.1.12; >= 1.0.0-rc93, <= 1.1.11 1.1.12 Fixed
redhat enterprise linux < 4:1.1.12-1.el9_3; < 8090020240201111813.d7b6f4b7; < 8090020240201111839.d7b6f4b7; = 9 +1 more 4:1.1.12-1.el9_3, 8090020240201111813.d7b6f4b7, 8090020240201111839.d7b6f4b7 Fixed
redhat rhel aus < 8020020240206120705.28c38760; < 8040020240207051234.c0c392d5 8020020240206120705.28c38760, 8040020240207051234.c0c392d5 Fixed
redhat rhel e4s < 8020020240206120705.28c38760; < 8040020240207051234.c0c392d5 8020020240206120705.28c38760, 8040020240207051234.c0c392d5 Fixed
redhat rhel eus < 4:1.1.12-1.el9_0; < 4:1.1.12-1.el9_2; < 8060020240205133014.3b538bd8; < 8060020240206151655.3b538bd8 +1 more 4:1.1.12-1.el9_0, 4:1.1.12-1.el9_2, 8060020240205133014.3b538bd8, 8060020240206151655.3b538bd8, 8080020240206143933.0f77c1b7 Fixed
redhat rhel extras other < 0:1.0.0-70.rc10.el7_9; < 2:1.13.1-210.git7d71120.el7_9 0:1.0.0-70.rc10.el7_9, 2:1.13.1-210.git7d71120.el7_9 Fixed
redhat rhel tus < 8020020240206120705.28c38760; < 8040020240207051234.c0c392d5 8020020240206120705.28c38760, 8040020240207051234.c0c392d5 Fixed
ubuntu/runc(Ubuntu 20.04) < 1.1.7-0ubuntu1~20.04.2; = 1.0.0~rc8+git20190923.3e425f80-0ubuntu1; = 1.0.0~rc10-0ubuntu1; = 1.0.0~rc93-0ubuntu1~20.04.1 +10 more 1.1.7-0ubuntu1~20.04.2 Fixed
ubuntu/runc(Ubuntu 22.04) < 1.1.7-0ubuntu1~22.04.2; = 1.0.1-0ubuntu2; = 1.0.1-0ubuntu3; = 1.0.3-0ubuntu1 +6 more 1.1.7-0ubuntu1~22.04.2 Fixed
ubuntu/runc(Ubuntu Pro 18.04) < 1.1.4-0ubuntu1~18.04.2+esm1; = 1.0.0~rc2+docker1.13.1-0ubuntu1; = 1.0.0~rc4+dfsg1-2; = 1.0.0~rc4+dfsg1-6 +14 more 1.1.4-0ubuntu1~18.04.2+esm1 Fixed
fedoraproject fedora = 39 No fix listed Versions listed
opencontainers runc = >=v1.0.0-rc93, < 1.1.12 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
opencontainers runc(Go) >= 1.0.0-rc93, < 1.1.12 1.1.12
debian/runc(Debian:12) < 1.1.5+ds1-1+deb12u1 1.1.5+ds1-1+deb12u1
debian/runc(Debian:12) = 1.1.5+ds1-1 No fix listed
debian/runc(Debian:13) < 1.1.12+ds1-1 1.1.12+ds1-1
debian/runc(Debian:14) < 1.1.12+ds1-1 1.1.12+ds1-1
opencontainers runc(Go) >= 1.0.0-rc93, <= 1.1.11 No fix listed
ubuntu/runc(Ubuntu:22.04) < 1.1.7-0ubuntu1~22.04.2 1.1.7-0ubuntu1~22.04.2
opencontainers runc = >=v1.0.0-rc93, < 1.1.12 No fix listed
redhat ocp tools < 0:2.440.3.1718879390-3.el8 0:2.440.3.1718879390-3.el8
redhat ocp tools < 0:4.15.1718879538-1.el8 0:4.15.1718879538-1.el8
redhat rhel extras other < 0:1.0.0-70.rc10.el7_9 0:1.0.0-70.rc10.el7_9
redhat rhel extras other < 2:1.13.1-210.git7d71120.el7_9 2:1.13.1-210.git7d71120.el7_9
redhat enterprise linux < 8090020240201111813.d7b6f4b7 8090020240201111813.d7b6f4b7
redhat enterprise linux < 8090020240201111839.d7b6f4b7 8090020240201111839.d7b6f4b7
redhat rhel aus < 8020020240206120705.28c38760 8020020240206120705.28c38760
redhat rhel tus < 8020020240206120705.28c38760 8020020240206120705.28c38760
redhat rhel e4s < 8020020240206120705.28c38760 8020020240206120705.28c38760
redhat rhel aus < 8040020240207051234.c0c392d5 8040020240207051234.c0c392d5
redhat rhel tus < 8040020240207051234.c0c392d5 8040020240207051234.c0c392d5
redhat rhel e4s < 8040020240207051234.c0c392d5 8040020240207051234.c0c392d5
redhat rhel eus < 8060020240205133014.3b538bd8 8060020240205133014.3b538bd8
redhat rhel eus < 8060020240206151655.3b538bd8 8060020240206151655.3b538bd8
redhat rhel eus < 8080020240206143933.0f77c1b7 8080020240206143933.0f77c1b7
redhat enterprise linux < 4:1.1.12-1.el9_3 4:1.1.12-1.el9_3
redhat rhel eus < 4:1.1.12-1.el9_0 4:1.1.12-1.el9_0
Show 73 more
ProductAffected versionsFixed in
redhat rhel eus < 4:1.1.12-1.el9_2 4:1.1.12-1.el9_2
redhat openshift < 3:1.1.2-3.1.rhaos4.11.el8 3:1.1.2-3.1.rhaos4.11.el8
redhat openshift < 3:1.1.6-5.1.rhaos4.12.el8 3:1.1.6-5.1.rhaos4.12.el8
redhat openshift < v4.12.0-202503030130.p0.g7c2a284.assembly.stream.el8 v4.12.0-202503030130.p0.g7c2a284.assembly.stream.el8
redhat openshift < 4:1.1.12-1.rhaos4.13.el8 4:1.1.12-1.rhaos4.13.el8
redhat openshift < v4.13.0-202503111300.p0.gb379980.assembly.stream.el8 v4.13.0-202503111300.p0.gb379980.assembly.stream.el8
redhat openshift < 4:1.1.12-1.rhaos4.14.el8 4:1.1.12-1.rhaos4.14.el8
redhat openshift < v4.14.0-202503060906.p0.gb03f3f5.assembly.stream.el8 v4.14.0-202503060906.p0.gb03f3f5.assembly.stream.el8
redhat openshift < 0:4.14.42-202411280904.p0.gcf4d04f.assembly.4.14.42.el9 0:4.14.42-202411280904.p0.gcf4d04f.assembly.4.14.42.el9
redhat openshift < v4.15.0-202502171304.p0.gb74eb6d.assembly.stream.el8 v4.15.0-202502171304.p0.gb74eb6d.assembly.stream.el8
redhat openshift < 0:4.15.41-202412091343.p0.gcf9680e.assembly.4.15.41.el9 0:4.15.41-202412091343.p0.gcf9680e.assembly.4.15.41.el9
redhat openshift < 0:4.16.24-202411220522.p0.gcc4fedc.assembly.4.16.24.el9 0:4.16.24-202411220522.p0.gcc4fedc.assembly.4.16.24.el9
redhat openshift < v4.16.0-202501160405.p0.g300d9ad.assembly.stream.el9 v4.16.0-202501160405.p0.g300d9ad.assembly.stream.el9
redhat openshift < 0:4.17.7-202411280904.p0.g129334d.assembly.4.17.7.el9 0:4.17.7-202411280904.p0.g129334d.assembly.4.17.7.el9
redhat openshift < v4.17.0-202501052337.p0.gbb33e13.assembly.stream.el9 v4.17.0-202501052337.p0.gbb33e13.assembly.stream.el9
redhat ocp tools All versions No fix listed
redhat openshift power monitoring All versions No fix listed
redhat enterprise linux = 10 No fix listed
redhat enterprise linux = 9 No fix listed
redhat openshift = 4 No fix listed
redhat openshift All versions No fix listed
redhat container native virtualization All versions No fix listed
redhat quay All versions No fix listed
alpine/runc(Alpine:v3.18) < 1.1.12-r0 1.1.12-r0
alpine/runc(Alpine:v3.19) < 1.1.12-r0 1.1.12-r0
alpine/runc(Alpine:v3.20) < 1.1.12-r0 1.1.12-r0
alpine/runc(Alpine:v3.21) < 1.1.12-r0 1.1.12-r0
alpine/runc(Alpine:v3.22) < 1.1.12-r0 1.1.12-r0
alpine/runc(Alpine:v3.23) < 1.1.12-r0 1.1.12-r0
alpine/runc(Alpine:v3.24) < 1.1.12-r0 1.1.12-r0
linuxfoundation runc < 1.1.12 1.1.12
fedoraproject fedora = 39 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) < 1.1.4-0ubuntu1~18.04.2+esm1 1.1.4-0ubuntu1~18.04.2+esm1
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc2+docker1.13.1-0ubuntu1 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc4+dfsg1-2 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc4+dfsg1-6 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc4+dfsg1-6ubuntu0.18.04.1 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.1 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.2 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.2+esm1 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc10-0ubuntu1~18.04.1 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc10-0ubuntu1~18.04.2 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc93-0ubuntu1~18.04.1 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc93-0ubuntu1~18.04.2 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc95-0ubuntu1~18.04.1 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.0~rc95-0ubuntu1~18.04.2 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.0.1-0ubuntu2~18.04.1 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.1.0-0ubuntu1~18.04.1 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.1.4-0ubuntu1~18.04.1 No fix listed
ubuntu/runc(Ubuntu:Pro:18.04) = 1.1.4-0ubuntu1~18.04.2 No fix listed
ubuntu/runc(Ubuntu:20.04) < 1.1.7-0ubuntu1~20.04.2 1.1.7-0ubuntu1~20.04.2
ubuntu/runc(Ubuntu:20.04) = 1.0.0~rc8+git20190923.3e425f80-0ubuntu1 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.0.0~rc10-0ubuntu1 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.0.0~rc93-0ubuntu1~20.04.1 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.0.0~rc93-0ubuntu1~20.04.2 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.0.0~rc95-0ubuntu1~20.04.1 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.0.0~rc95-0ubuntu1~20.04.2 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.0.1-0ubuntu2~20.04.1 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.1.0-0ubuntu1~20.04.1 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.1.0-0ubuntu1~20.04.2 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.1.4-0ubuntu1~20.04.1 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.1.4-0ubuntu1~20.04.2 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.1.4-0ubuntu1~20.04.3 No fix listed
ubuntu/runc(Ubuntu:20.04) = 1.1.7-0ubuntu1~20.04.1 No fix listed
ubuntu/runc(Ubuntu:22.04) = 1.0.1-0ubuntu2 No fix listed
ubuntu/runc(Ubuntu:22.04) = 1.0.1-0ubuntu3 No fix listed
ubuntu/runc(Ubuntu:22.04) = 1.0.3-0ubuntu1 No fix listed
ubuntu/runc(Ubuntu:22.04) = 1.1.0-0ubuntu1 No fix listed
ubuntu/runc(Ubuntu:22.04) = 1.1.0-0ubuntu1.1 No fix listed
ubuntu/runc(Ubuntu:22.04) = 1.1.4-0ubuntu1~22.04.1 No fix listed
ubuntu/runc(Ubuntu:22.04) = 1.1.4-0ubuntu1~22.04.2 No fix listed
ubuntu/runc(Ubuntu:22.04) = 1.1.4-0ubuntu1~22.04.3 No fix listed
ubuntu/runc(Ubuntu:22.04) = 1.1.7-0ubuntu1~22.04.1 No fix listed

References