CVE-2024-21626
runc container breakout through process.cwd trickery and leaked fds
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 :
Nov. 21, 2024, 8:54 a.m.
Remotely Exploit :
No
Source :
[email protected]
Affected Products
The following products are affected by CVE-2024-21626
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update the affected runc packages to version 1.1.12 or later.
- Update container-related packages based on vendor guidance.
Public PoC/Exploit Available at Github
CVE-2024-21626 has a 81 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.
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.
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).
ZipSlip vulnerability PoC for containerd - CVE pending
Dockerfile Python Shell
ZipSlip vulnerability PoC for containerd - CVE pending
Dockerfile Python
None
HTML
Exploit-Research Database.
CSS JavaScript HTML
VulnScope — Vulnerability Intelligence Platform
Dockerfile HTML
KubeXHunt is a Kubernetes security assessment tool designed for penetration testers and security engineers to evaluate cluster misconfigurations and potential attack paths from within a compromised pod, providing clear pass/fail results for each security check.
Python HTML
Security-hardened Docker setup for Claude Code Remote Control
anthropic claude claude-code container docker oauth remote-control security
Dockerfile Shell
Bug Hunting Live Studio
HTML TypeScript CSS
AI-powered Remote Browser Isolation for security analysts. Detonate suspicious URLs in sandboxed Docker containers with full network telemetry, VirusTotal integration, and Claude-powered threat analysis.
HTML JavaScript TypeScript CSS Shell
Production AppSec CI/CD pipeline — SAST, SCA, secrets, DAST, IaC
dast devsecops github-actions sast sca security-pipeline
Project for Repository Security
PoC for CVE-2024-21626: runc leaks an internal fd referencing the host CWD before pivot_root, enabling container escape by setting process.cwd to /proc/self/fd/7
exposicion
Python C
This project implements a comprehensive security posture for GCP/GKE infrastructure in response to an active threat from a Russian APT group (tracked internally as **INC-2026-0042**).
Makefile Shell HCL Dockerfile Python
OpenClaw Skills Library 2,510 Production-Ready Skills for AI Agent Automation Give your OpenClaw agent the complete puzzle. Modular, observable, and safe automation workflows for Ubuntu Linux systems. Built for professionals who need reliability.
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.
-
Daily CyberSecurity
OCI Fixes Container Escape Vulnerabilities in runc (CVE-2025-31133, CVE-2025-52565, CVE-2025-52881)
The Open Container Initiative (OCI) has released security updates to address three high-severity vulnerabilities affecting its container runtime runc, including flaws that could lead to container esca ... Read more
-
Cybersecurity News
Threat Actors Exploiting Misconfigured Docker Remote API Servers with Gafgyt Malware
Trend Micro Research has revealed a significant evolution in the behavior of the Gafgyt malware (also known as Bashlite or Lizkebab), which is now targeting misconfigured Docker Remote API servers. Th ... Read more
-
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 af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/176993/runc-1.1.11-File-Descriptor-Leak-Privilege-Escalation.html Added Reference http://www.openwall.com/lists/oss-security/2024/02/01/1 Added Reference http://www.openwall.com/lists/oss-security/2024/02/02/3 Added Reference https://github.com/opencontainers/runc/commit/02120488a4c0fc487d1ed2867e901eeed7ce8ecf Added Reference https://github.com/opencontainers/runc/releases/tag/v1.1.12 Added Reference https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv Added Reference https://lists.debian.org/debian-lts-announce/2024/02/msg00005.html Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/2NLXNE23Q5ESQUAI22Z7A63JX2WMPJ2J/ Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/SYMO3BANINS6RGFQFKPRG4FIOJ7GWYTL/ Added Reference https://www.vicarius.io/vsociety/posts/leaky-vessels-part-1-cve-2024-21626 -
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