Leaky Vessels: runc leaked-fd working-directory container escape (CVE-2024-21626)
runc marks stray inherited file descriptors close-on-exec but then enters the workload's requested working directory before they are actually closed, so a cwd of /proc/self/fd/N re-enters a still-open host directory handle and the process escapes onto the host filesystem.
- Product
- runc (OCI container runtime; used by Docker, containerd, Kubernetes, BuildKit)
- Vendor
- Open Container Initiative (opencontainers)
- Affected
- >= v1.0.0-rc93, <= 1.1.11
- Fixed in
- 1.1.12 (also 1.2.0-rc.1)
- Weakness
- CWE-403
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Published
- 31 Jan 2024
Classified as
References
Related CVEs
- CVE-2021-30465high 8.52021
runc mount-destination symlink race (container escape)
A bind-mount destination is resolved and confined once, then the mount syscall re-walks it as a string, so a racing symlink swap redirects the mount outside the container and bind-mounts the host filesystem in.
- CVE-2022-24348high 7.72022
Argo CD Helm value-file path traversal
A containment check on Helm value-file paths runs only when the path fails to parse as a URI, so a client-supplied absolute path parses cleanly, skips the check, and reads files from outside the repository root.
- CVE-2019-14271critical 9.82019
Docker cp container escape via untrusted libnss load (CVE-2019-14271)
The docker cp helper chroots into the container, then a routine archive walk resolves file owners and glibc's NSS facility lazily loads libnss modules from inside that container filesystem, so a trojaned libnss runs as root on the host.
- CVE-2019-5736high 8.62019
runc container escape via /proc/self/exe
A container runtime re-executes its own on-disk binary through /proc/self/exe to enter the sandbox, so code running in the sandbox can grab a writable handle to that binary and overwrite it, taking over the host.