CVE-2021-41103Insufficiently restricted permissions on plugin directories
containerd is an open source container runtime with an emphasis on simplicity, robustness and portability. A bug was found in containerd where container root directories and some plugins had insufficiently restricted permissions, allowing otherwise unprivileged Linux users to traverse directory contents and execute programs. When containers included executable programs with extended permission bits (such as setuid), unprivileged Linux users could discover and execute those programs. When the UID of an unprivileged Linux user on the host collided with the file owner or group inside a container, the unprivileged Linux user on the host could discover, read, and modify those files. This vulnerability has been fixed in containerd 1.4.11 and containerd 1.5.7. Users should update to these version when they are released and may restart containers or update directory permissions to mitigate the vulnerability. Users unable to update should limit access to the host to trusted users. Update directory permission on container bundles directories.
What to do
Fixed builds are available from Alpine, 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 22.04 | containerd | Fixed | 1.5.5-0ubuntu3 | UBUNTU-CVE-2021-41103 |
| Ubuntu 20.04 | containerd | Fixed | 1.5.2-0ubuntu1~20.04.3 | UBUNTU-CVE-2021-41103 |
| Ubuntu 18.04 | containerd | Fixed | 1.5.2-0ubuntu1~18.04.3 | UBUNTU-CVE-2021-41103 |
| Ubuntu 16.04 | containerd | Fix pending | 1.2.6-0ubuntu1~16.04.6+esm2 (Ubuntu Pro) | UBUNTU-CVE-2021-41103 |
| Debian 14 | containerd | Fixed | 1.5.7~ds1-1 | DEBIAN-CVE-2021-41103 |
| Debian 13 | containerd | Fixed | 1.5.7~ds1-1 | DEBIAN-CVE-2021-41103 |
| Debian 12 | containerd | Fixed | 1.5.7~ds1-1 | DEBIAN-CVE-2021-41103 |
| Alpine Linux 3.24 | containerd | Fixed | 1.5.7-r0 | ALPINE-CVE-2021-41103 |
| Alpine Linux 3.23 | containerd | Fixed | 1.5.7-r0 | ALPINE-CVE-2021-41103 |
| Alpine Linux 3.22 | containerd | Fixed | 1.5.7-r0 | ALPINE-CVE-2021-41103 |
| Alpine Linux 3.21 | containerd | Fixed | 1.5.7-r0 | ALPINE-CVE-2021-41103 |
| Alpine Linux 3.20 | containerd | Fixed | 1.5.7-r0 | ALPINE-CVE-2021-41103 |
| Alpine Linux 3.19 | containerd | Fixed | 1.5.7-r0 | ALPINE-CVE-2021-41103 |
| Alpine Linux 3.18 | containerd | Fixed | 1.5.7-r0 | ALPINE-CVE-2021-41103 |
| Alpine Linux 3.17 | containerd | Fixed | 1.5.7-r0 | ALPINE-CVE-2021-41103 |
| Alpine Linux 3.16 | containerd | Fixed | 1.5.7-r0 | ALPINE-CVE-2021-41103 |
| Alpine Linux 3.15 | containerd | Fixed | 1.5.7-r0 | ALPINE-CVE-2021-41103 |
| Alpine Linux 3.14 | containerd | Fixed | 1.5.7-r0 | ALPINE-CVE-2021-41103 |
| Go library | github.com/containerd/containerd | Fixed | 1.4.11 | GO-2022-0938 |
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.4.11, >= 1.5.0, < 1.5.7
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://www.debian.org/security/2021/dsa-5002 (vendor-advisory)
- https://security.gentoo.org/glsa/202401-31 (vendor-advisory)
References
- https://github.com/containerd/containerd/security/advisories/GHSA-c2h3-6mxw-7mvq
- https://github.com/containerd/containerd/commit/5b46e404f6b9f661a205e28d59c982d3634148f8
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/
- https://www.debian.org/security/2021/dsa-5002
- https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
- https://security.gentoo.org/glsa/202401-31
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.