PortGate

Advisories · Docker & Containers

CVE-2024-21626 High CVSS 8.6

runc container escape through a leaked file descriptor

Disclosed 2024 · Last reviewed 2 Dec 2026

A file descriptor left open to the host filesystem could be used by a container process to break out of the container, depending on the working directory.

What happened

runc leaked a host directory file descriptor into the container. Setting the working directory to that descriptor path let a process reach the host.

Affected and patched versions

Affected
runc 1.1.11 and earlier, including the runc builds shipped with Docker and containerd before the January 2024 updates.
Patched
runc 1.1.12 and the Docker Engine releases that bundle it.

How to check your server

Check

runc --version
docker version --format 'Server {{.Server.Version}}'

How to fix and harden

  1. Read the runc version. Builds before 1.1.12 are affected.
  2. Upgrade Docker Engine, containerd, and runc from the distribution or Docker repository together.
  3. Recreate running containers so they start under the new runtime.
  4. Avoid images that set a working directory to a raw file-descriptor path.

Fix

sudo apt-get update && sudo apt-get install --only-upgrade docker.io containerd runc
runc --version

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON