CVE-2024-25621containerd affected by a local privilege escalation via wide permissions on CRI directory
containerd is an open-source container runtime. Versions 0.1.0 through 1.7.28, 2.0.0-beta.0 through 2.0.6, 2.1.0-beta.0 through 2.1.4 and 2.2.0-beta.0 through 2.2.0-rc.1 have an overly broad default permission vulnerability. Directory paths `/var/lib/containerd`, `/run/containerd/io.containerd.grpc.v1.cri` and `/run/containerd/io.containerd.sandbox.controller.v1.shim` were all created with incorrect permissions. This issue is fixed in versions 1.7.29, 2.0.7, 2.1.5 and 2.2.0. Workarounds include updating system administrator permissions so the host can manually chmod the directories to not have group or world accessible permissions, or to run containerd in rootless mode.
What to do
Fixed builds are available from Debian, Go, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | containerd-app | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | containerd | Fixed | 1.7.24~ds1-8ubuntu1.1 | UBUNTU-CVE-2024-25621 |
| Ubuntu 25.10 | containerd-app | Fixed | 2.1.3-0ubuntu3.1 | UBUNTU-CVE-2024-25621 |
| Ubuntu 24.04 | containerd | Fix pending | 1.6.24~ds1-1ubuntu1.3+esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-25621 |
| Ubuntu 24.04 | containerd-app | Fixed | 1.7.28-0ubuntu1~24.04.2 | UBUNTU-CVE-2024-25621 |
| Ubuntu 22.04 | containerd | Fixed | 1.6.12-0ubuntu1~22.04.10 | UBUNTU-CVE-2024-25621 |
| Ubuntu 22.04 | containerd-app | Fix pending | 1.7.28-0ubuntu1~22.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-25621 |
| Ubuntu 20.04 | containerd | Fix pending | 1.6.12-0ubuntu1~20.04.8+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-25621 |
| Ubuntu 20.04 | containerd-app | Fix pending | 1.7.24-0ubuntu1~20.04.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-25621 |
| Ubuntu 18.04 | containerd | Fix pending | 1.6.12-0ubuntu1~18.04.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2024-25621 |
| Ubuntu 16.04 | containerd | Fix pending | 1.2.6-0ubuntu1~16.04.6+esm6 (Ubuntu Pro) | UBUNTU-CVE-2024-25621 |
| Debian 14 | containerd | Fixed | 1.7.24~ds1-9 | DEBIAN-CVE-2024-25621 |
| Debian 13 | containerd | Fixed | 1.7.24~ds1-6+deb13u1 | DEBIAN-CVE-2024-25621 |
| Debian 12 | containerd | Fixed | 1.6.20~ds1-1+deb12u2 | DEBIAN-CVE-2024-25621 |
| Red Hat Enterprise Linux 9 | buildah | Not affected | ||
| Red Hat Enterprise Linux 9 | buildah-tests | Not affected | ||
| Red Hat Enterprise Linux 9 | conmon | Not affected | ||
| Red Hat Enterprise Linux 9 | podman | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-catatonit | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-docker | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-gvproxy | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-plugins | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-remote | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-tests | Not affected | ||
| Red Hat Enterprise Linux 9 | skopeo | Not affected | ||
| Red Hat Enterprise Linux 9 | skopeo-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | buildah | Not affected | ||
| Red Hat Enterprise Linux 8 | buildah-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | conmon | Not affected | ||
| Red Hat Enterprise Linux 8 | containers-common | Not affected | ||
| Red Hat Enterprise Linux 8 | podman | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-catatonit | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-docker | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-gvproxy | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-manpages | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-plugins | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-remote | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | skopeo | Not affected | ||
| Red Hat Enterprise Linux 8 | skopeo-tests | Not affected | ||
| Go library | github.com/containerd/containerd | Fixed | 1.7.29 | GHSA-pwhc-rpq9-4c8w |
| Go library | github.com/containerd/containerd/v2 | Fixed | 2.0.7 | GHSA-pwhc-rpq9-4c8w |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- containerd: affected: < 1.7.29, >= 2.0.0-beta.0, < 2.0.7, >= 2.1.0-beta.0, < 2.1.5, >= 2.2.0-beta.0, < 2.2.0
References
- https://github.com/containerd/containerd/security/advisories/GHSA-pwhc-rpq9-4c8w
- https://github.com/containerd/containerd/commit/7c59e8e9e970d38061a77b586b23655c352bfec5
- https://github.com/containerd/containerd/blob/main/docs/rootless.md
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.