CVE-2024-21626
runc File Descriptor Leak
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.
INFO
Published Date :
Jan. 31, 2024, 10:15 p.m.
Last Modified :
Feb. 19, 2024, 3:15 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
6.0
Exploitability Score :
1.8
Public PoC/Exploit Available at Github
CVE-2024-21626 has a 32 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-21626
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Some scripts to simulate an attack (used for CVE-2024-21626)
Shell
None
Shell
Recording Framework for CAShift
Shell Python HTML Go Dockerfile C
None
None
None
Makefile C Dockerfile Go
POC
None
Dockerfile Shell Go
Reference Implementation of a so-called Honeycluster - for kind (and GKE, RKE2, AKS)
cloudnative cybersecurity ebpf kubernetes threat-intelligence
Dockerfile Python Shell Go Rust Smarty Makefile JavaScript
None
Dockerfile
None
Dockerfile C Go
None
Makefile C
None
Dockerfile Shell
Container Runtime Meetup #5 のLT用のデモ
Dockerfile Shell
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-21626
vulnerability anywhere in the article.
- Kaspersky
Improvements to our SIEM for Q3 2024 | Kaspersky official blog
SIEM Rules for detecting atypical behavior in container infrastructure at the data collection stage, and other updates to our SIEM system. November 2, 2024 Clearly, the sooner malicious actions come t ... Read more
The following table lists the changes that have been made to the
CVE-2024-21626
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Feb. 19, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.debian.org/debian-lts-announce/2024/02/msg00005.html [No types assigned] -
CVE Modified by [email protected]
Feb. 11, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/2NLXNE23Q5ESQUAI22Z7A63JX2WMPJ2J/ [No types assigned] -
Initial Analysis by [email protected]
Feb. 09, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H Changed Reference Type http://packetstormsecurity.com/files/176993/runc-1.1.11-File-Descriptor-Leak-Privilege-Escalation.html No Types Assigned http://packetstormsecurity.com/files/176993/runc-1.1.11-File-Descriptor-Leak-Privilege-Escalation.html Exploit, Third Party Advisory, VDB Entry Changed Reference Type http://www.openwall.com/lists/oss-security/2024/02/01/1 No Types Assigned http://www.openwall.com/lists/oss-security/2024/02/01/1 Mailing List Changed Reference Type http://www.openwall.com/lists/oss-security/2024/02/02/3 No Types Assigned http://www.openwall.com/lists/oss-security/2024/02/02/3 Mailing List Changed Reference Type https://github.com/opencontainers/runc/commit/02120488a4c0fc487d1ed2867e901eeed7ce8ecf No Types Assigned https://github.com/opencontainers/runc/commit/02120488a4c0fc487d1ed2867e901eeed7ce8ecf Patch Changed Reference Type https://github.com/opencontainers/runc/releases/tag/v1.1.12 No Types Assigned https://github.com/opencontainers/runc/releases/tag/v1.1.12 Release Notes Changed Reference Type https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv No Types Assigned https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv Exploit, Vendor Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/SYMO3BANINS6RGFQFKPRG4FIOJ7GWYTL/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/SYMO3BANINS6RGFQFKPRG4FIOJ7GWYTL/ Mailing List Added CWE NIST CWE-668 Added CPE Configuration OR *cpe:2.3:a:linuxfoundation:runc:*:*:*:*:*:*:*:* versions up to (excluding) 1.1.12 Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Feb. 06, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/SYMO3BANINS6RGFQFKPRG4FIOJ7GWYTL/ [No types assigned] -
CVE Modified by [email protected]
Feb. 05, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. http://packetstormsecurity.com/files/176993/runc-1.1.11-File-Descriptor-Leak-Privilege-Escalation.html [No types assigned] -
CVE Modified by [email protected]
Feb. 02, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. http://www.openwall.com/lists/oss-security/2024/02/02/3 [No types assigned] -
CVE Modified by [email protected]
Feb. 01, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. http://www.openwall.com/lists/oss-security/2024/02/01/1 [No types assigned] -
CVE Received by [email protected]
Jan. 31, 2024
Action Type Old Value New Value Added 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. Added Reference GitHub, Inc. https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv [No types assigned] Added Reference GitHub, Inc. https://github.com/opencontainers/runc/commit/02120488a4c0fc487d1ed2867e901eeed7ce8ecf [No types assigned] Added Reference GitHub, Inc. https://github.com/opencontainers/runc/releases/tag/v1.1.12 [No types assigned] Added CWE GitHub, Inc. CWE-403 Added CWE GitHub, Inc. CWE-668 Added CVSS V3.1 GitHub, Inc. AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-21626
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-21626
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
5.06 }} 2.83%
score
0.92632
percentile