CVE-2021-32760Archive package allows chmod of file outside of unpack target directory
containerd is a container runtime. A bug was found in containerd versions prior to 1.4.8 and 1.5.4 where pulling and extracting a specially-crafted container image can result in Unix file permission changes for existing files in the host’s filesystem. Changes to file permissions can deny access to the expected owner of the file, widen access to others, or set extended bits like setuid, setgid, and sticky. This bug does not directly allow files to be read, modified, or executed without an additional cooperating process. This bug has been fixed in containerd 1.5.4 and 1.4.8. As a workaround, ensure that users only pull images from trusted sources. Linux security modules (LSMs) like SELinux and AppArmor can limit the files potentially affected by this bug through policies and profiles that prevent containerd from interacting with specific files.
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 20.04 | containerd | Fixed | 1.5.2-0ubuntu1~20.04.2 | UBUNTU-CVE-2021-32760 |
| Ubuntu 18.04 | containerd | Fixed | 1.5.2-0ubuntu1~18.04.2 | UBUNTU-CVE-2021-32760 |
| Ubuntu 16.04 | containerd | Fix pending | 1.2.6-0ubuntu1~16.04.6+esm2 (Ubuntu Pro) | UBUNTU-CVE-2021-32760 |
| Debian 14 | containerd | Fixed | 1.4.5~ds1-2 | DEBIAN-CVE-2021-32760 |
| Debian 13 | containerd | Fixed | 1.4.5~ds1-2 | DEBIAN-CVE-2021-32760 |
| Debian 12 | containerd | Fixed | 1.4.5~ds1-2 | DEBIAN-CVE-2021-32760 |
| Alpine Linux 3.24 | containerd | Fixed | 1.5.4-r0 | ALPINE-CVE-2021-32760 |
| Alpine Linux 3.23 | containerd | Fixed | 1.5.4-r0 | ALPINE-CVE-2021-32760 |
| Alpine Linux 3.22 | containerd | Fixed | 1.5.4-r0 | ALPINE-CVE-2021-32760 |
| Alpine Linux 3.21 | containerd | Fixed | 1.5.4-r0 | ALPINE-CVE-2021-32760 |
| Alpine Linux 3.20 | containerd | Fixed | 1.5.4-r0 | ALPINE-CVE-2021-32760 |
| Alpine Linux 3.19 | containerd | Fixed | 1.5.4-r0 | ALPINE-CVE-2021-32760 |
| Alpine Linux 3.18 | containerd | Fixed | 1.5.4-r0 | ALPINE-CVE-2021-32760 |
| Alpine Linux 3.17 | containerd | Fixed | 1.5.4-r0 | ALPINE-CVE-2021-32760 |
| Alpine Linux 3.16 | containerd | Fixed | 1.5.4-r0 | ALPINE-CVE-2021-32760 |
| Alpine Linux 3.15 | containerd | Fixed | 1.5.4-r0 | ALPINE-CVE-2021-32760 |
| Alpine Linux 3.14 | containerd | Fixed | 1.5.4-r0 | ALPINE-CVE-2021-32760 |
| Alpine Linux 3.13 | containerd | Fixed | 1.4.8-r0 | ALPINE-CVE-2021-32760 |
| Go library | github.com/containerd/containerd | Fixed | 1.5.4 | GHSA-c72p-9xmj-rx3w |
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.7, >= 1.5.0, <= 1.5.3
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202401-31 (vendor-advisory)
References
- https://github.com/containerd/containerd/security/advisories/GHSA-c72p-9xmj-rx3w
- https://github.com/containerd/containerd/releases/tag/v1.4.8
- https://github.com/containerd/containerd/releases/tag/v1.5.4
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDMNDPJJTP3J5GOEDB66F6MGXUTRG3Y3/
- 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.