Archive package allows chmod of file outside of unpack target directory
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/containerd/containerdGo | < 1.4.8 | 1.4.8 |
github.com/containerd/containerdGo | >= 1.5.0, < 1.5.4 | 1.5.4 |
Affected products
59- osv-coords58 versionspkg:apk/chainguard/ctoppkg:apk/wolfi/ctoppkg:golang/github.com/containerd/containerdpkg:rpm/opensuse/containerd&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/containerd&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/containerd&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/docker&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/docker&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/docker-kubic&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/runc&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/runc&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/trivy&distro=openSUSE%20Tumbleweedpkg:rpm/suse/containerd&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Micro%205.0pkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2012pkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP2pkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP3pkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/docker&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Micro%205.0pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2012pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP2pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP3pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/runc&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/runc&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Micro%205.0pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2012pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP2pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP3pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1
< 0.7.7-r13+ 57 more
- (no CPE)range: < 0.7.7-r13
- (no CPE)range: < 0.7.7-r13
- (no CPE)range: < 1.4.8
- (no CPE)range: < 1.4.4-lp152.2.9.1
- (no CPE)range: < 1.4.4-5.36.1
- (no CPE)range: < 1.4.8-2.2
- (no CPE)range: < 20.10.9_ce-lp152.2.18.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 1.0.2-lp152.2.9.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 0.20.2-1.1
- (no CPE)range: < 1.4.11-56.1
- (no CPE)range: < 1.4.11-56.1
- (no CPE)range: < 1.4.11-56.1
- (no CPE)range: < 1.4.11-56.1
- (no CPE)range: < 1.4.11-56.1
- (no CPE)range: < 1.4.4-5.36.1
- (no CPE)range: < 1.4.11-56.1
- (no CPE)range: < 1.4.4-16.42.1
- (no CPE)range: < 1.4.4-5.36.1
- (no CPE)range: < 1.4.4-5.36.1
- (no CPE)range: < 1.4.11-56.1
- (no CPE)range: < 1.4.11-56.1
- (no CPE)range: < 1.4.11-56.1
- (no CPE)range: < 1.4.11-56.1
- (no CPE)range: < 1.4.11-56.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-98.72.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 20.10.9_ce-156.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-16.14.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- (no CPE)range: < 1.0.2-23.1
- Range: <= 1.4.7
Patches
Vulnerability mechanics
References
11- github.com/advisories/GHSA-c72p-9xmj-rx3wghsaADVISORY
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDMNDPJJTP3J5GOEDB66F6MGXUTRG3Y3/mitrevendor-advisory
- nvd.nist.gov/vuln/detail/CVE-2021-32760ghsaADVISORY
- security.gentoo.org/glsa/202401-31ghsavendor-advisoryWEB
- github.com/containerd/containerd/commit/22e9a70c71eff6507be71955947a611f2ed91e6cghsaWEB
- github.com/containerd/containerd/commit/7ad08c69e09ee4930a48dbf2aab3cd612458617fghsaWEB
- github.com/containerd/containerd/releases/tag/v1.4.8ghsaWEB
- github.com/containerd/containerd/releases/tag/v1.5.4ghsaWEB
- github.com/containerd/containerd/security/advisories/GHSA-c72p-9xmj-rx3wghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDMNDPJJTP3J5GOEDB66F6MGXUTRG3Y3ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DDMNDPJJTP3J5GOEDB66F6MGXUTRG3Y3ghsaWEB
News mentions
0No linked articles in our index yet.