CVEfocus › CVE database › CVE-2021-32760

CVE-2021-32760Archive package allows chmod of file outside of unpack target directory

CVSS 5.0 MediumEPSS 1.6% (higher than 76% of CVEs)Published 2021-07-19Updated 2024-11-19Assigner: GitHub_M

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.

CWE-668

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

18Fixed
1Fix pending

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04containerdFixed1.5.2-0ubuntu1~20.04.2UBUNTU-CVE-2021-32760
Ubuntu 18.04containerdFixed1.5.2-0ubuntu1~18.04.2UBUNTU-CVE-2021-32760
Ubuntu 16.04containerdFix pending1.2.6-0ubuntu1~16.04.6+esm2 (Ubuntu Pro)UBUNTU-CVE-2021-32760
Debian 14containerdFixed1.4.5~ds1-2DEBIAN-CVE-2021-32760
Debian 13containerdFixed1.4.5~ds1-2DEBIAN-CVE-2021-32760
Debian 12containerdFixed1.4.5~ds1-2DEBIAN-CVE-2021-32760
Alpine Linux 3.24containerdFixed1.5.4-r0ALPINE-CVE-2021-32760
Alpine Linux 3.23containerdFixed1.5.4-r0ALPINE-CVE-2021-32760
Alpine Linux 3.22containerdFixed1.5.4-r0ALPINE-CVE-2021-32760
Alpine Linux 3.21containerdFixed1.5.4-r0ALPINE-CVE-2021-32760
Alpine Linux 3.20containerdFixed1.5.4-r0ALPINE-CVE-2021-32760
Alpine Linux 3.19containerdFixed1.5.4-r0ALPINE-CVE-2021-32760
Alpine Linux 3.18containerdFixed1.5.4-r0ALPINE-CVE-2021-32760
Alpine Linux 3.17containerdFixed1.5.4-r0ALPINE-CVE-2021-32760
Alpine Linux 3.16containerdFixed1.5.4-r0ALPINE-CVE-2021-32760
Alpine Linux 3.15containerdFixed1.5.4-r0ALPINE-CVE-2021-32760
Alpine Linux 3.14containerdFixed1.5.4-r0ALPINE-CVE-2021-32760
Alpine Linux 3.13containerdFixed1.4.8-r0ALPINE-CVE-2021-32760
Go librarygithub.com/containerd/containerdFixed1.5.4GHSA-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.

Vendor advisories:

References

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.