{"schema_version":"1.7.5","id":"GHSA-c72p-9xmj-rx3w","published":"2021-07-26T21:17:45Z","modified":"2026-07-08T06:27:14.651216170Z","aliases":["CVE-2021-32760","GO-2022-0921"],"related":["CGA-69c3-8px4-4fm8"],"summary":"Archive package allows chmod of file outside of unpack target directory","details":"## Impact\n\nA bug was found in containerd 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.\n\n## Patches\n\nThis bug has been fixed in containerd 1.5.4 and 1.4.8.  Users should update to these versions as soon as they are released.  Running containers do not need to be restarted.\n\n## Workarounds\n\nEnsure you only pull images from trusted sources.\n\nLinux 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 unexpected files.\n\n## For more information\n\nIf you have any questions or comments about this advisory:\n\n* [Open an issue](https://github.com/containerd/containerd/issues/new/choose)\n* Email us at security@containerd.io if you think you’ve found a security bug.","affected":[{"package":{"name":"github.com/containerd/containerd","ecosystem":"Go","purl":"pkg:golang/github.com/containerd/containerd"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.4.8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/07/GHSA-c72p-9xmj-rx3w/GHSA-c72p-9xmj-rx3w.json"}},{"package":{"name":"github.com/containerd/containerd","ecosystem":"Go","purl":"pkg:golang/github.com/containerd/containerd"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.5.0"},{"fixed":"1.5.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/07/GHSA-c72p-9xmj-rx3w/GHSA-c72p-9xmj-rx3w.json"}}],"references":[{"type":"WEB","url":"https://github.com/containerd/containerd/security/advisories/GHSA-c72p-9xmj-rx3w"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32760"},{"type":"WEB","url":"https://github.com/containerd/containerd/commit/22e9a70c71eff6507be71955947a611f2ed91e6c"},{"type":"WEB","url":"https://github.com/containerd/containerd/commit/7ad08c69e09ee4930a48dbf2aab3cd612458617f"},{"type":"PACKAGE","url":"https://github.com/containerd/containerd"},{"type":"WEB","url":"https://github.com/containerd/containerd/releases/tag/v1.4.8"},{"type":"WEB","url":"https://github.com/containerd/containerd/releases/tag/v1.5.4"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDMNDPJJTP3J5GOEDB66F6MGXUTRG3Y3"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DDMNDPJJTP3J5GOEDB66F6MGXUTRG3Y3"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202401-31"}],"database_specific":{"cwe_ids":["CWE-668","CWE-732"],"github_reviewed":true,"github_reviewed_at":"2021-07-22T20:21:14Z","nvd_published_at":"2021-07-19T21:15:00Z","severity":"MODERATE"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"}]}