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

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.59%, higher than 76% of CVEs (2026-12-01)
- Published: 2021-07-19T00:00:00.000Z
- Modified: 2026-09-10T03:49:06.349Z
- Also known as: GHSA-c72p-9xmj-rx3w, GO-2022-0921
- Related: CGA-69c3-8px4-4fm8
- Weaknesses: CWE-668, CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- containerd containerd: <= 1.4.7; >= 1.5.0, <= 1.5.3
- github.com/containerd/containerd (Go): before 1.4.8; from 1.5.0 before 1.5.4
- linuxfoundation containerd: before 1.4.8; from 1.5.0 before 1.5.4
- fedoraproject fedora: 34

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/containerd/containerd/security/advisories/GHSA-c72p-9xmj-rx3w> (advisory, third-party-advisory, web)
- <https://github.com/containerd/containerd/releases/tag/v1.4.8> (release-notes, third-party-advisory, web)
- <https://github.com/containerd/containerd/releases/tag/v1.5.4> (release-notes, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDMNDPJJTP3J5GOEDB66F6MGXUTRG3Y3/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202401-31> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32760> (advisory)
- <https://github.com/containerd/containerd/commit/22e9a70c71eff6507be71955947a611f2ed91e6c> (fix, web)
- <https://github.com/containerd/containerd/commit/7ad08c69e09ee4930a48dbf2aab3cd612458617f> (fix, web)
- <https://github.com/containerd/containerd> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDMNDPJJTP3J5GOEDB66F6MGXUTRG3Y3> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DDMNDPJJTP3J5GOEDB66F6MGXUTRG3Y3> (web)

## Sources

- CVE List: [CVE-2021-32760](https://www.cve.org/CVERecord?id=CVE-2021-32760), CVE Terms of Use, modified 2024-11-19
- GitHub Advisory Database: [GHSA-c72p-9xmj-rx3w](https://github.com/advisories/GHSA-c72p-9xmj-rx3w), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2022-0921](https://pkg.go.dev/vuln/GO-2022-0921), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2021-32760](https://nvd.nist.gov/vuln/detail/CVE-2021-32760), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32760 · Whole record: https://cve.day/CVE-2021-32760.json · Rebuilt by cve.day 2026-11-25T22:58:02.734Z
