{"id":"CVE-2021-32760","published":"2021-07-19T00:00:00Z","modified":"2024-11-19T14:27:20Z","title":"Archive package allows chmod of file outside of unpack target directory","vendor":"containerd","product":"containerd","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01595,"percentile":0.7632,"provenance":"source"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"references":[{"url":"https://github.com/containerd/containerd/security/advisories/GHSA-c72p-9xmj-rx3w","tags":[]},{"url":"https://github.com/containerd/containerd/releases/tag/v1.4.8","tags":[]},{"url":"https://github.com/containerd/containerd/releases/tag/v1.5.4","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDMNDPJJTP3J5GOEDB66F6MGXUTRG3Y3/","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202401-31","tags":["vendor-advisory"]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":15.26},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"containerd","affectedVersions":[{"vendor":"containerd","product":"containerd","versions":["<= 1.4.7",">= 1.5.0, <= 1.5.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-19T14:27:11.335304Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/containerd/containerd","vulnerableRanges":["<1.4.8",">=1.5.0, <1.5.4"],"patched":["1.4.8","1.5.4"],"from":["GHSA-c72p-9xmj-rx3w","GO-2022-0921"],"provenance":"source"}],"summary":{"text":"The containerd container runtime (containerd product) contains a flaw in its archive unpacking logic, where extracting a specially crafted container image can change Unix file permissions on existing files on the host filesystem. An attacker who can get a user to pull and extract a malicious image, with user interaction required and high attack complexity, can deny access to a file's owner, widen access for others, or set setuid, setgid, or sticky bits, though this alone does not allow reading, modifying, or executing files without an additional cooperating process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:35Z"},"euvd":{"id":"EUVD-2021-1457","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-15157","published":"2020-10-16","fixed":"1.2.14","kev":false},{"cve":"CVE-2020-15257","published":"2020-12-01","fixed":"1.4.3","kev":false},{"cve":"CVE-2021-21334","published":"2021-03-10","fixed":"1.4.4","kev":false,"link":{"from":"CVE-2021-21334","to":"CVE-2021-32760","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containerd/containerd","fromFixed":"1.4.4","toFixed":"1.4.8","daysApart":131}]}},{"cve":"CVE-2021-32760","published":"2021-07-19","fixed":"1.5.4","kev":false},{"cve":"CVE-2021-41103","published":"2021-10-04","fixed":"1.5.7","kev":false,"link":{"from":"CVE-2021-32760","to":"CVE-2021-41103","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containerd/containerd","fromFixed":"1.4.8","toFixed":"1.4.11","daysApart":77}]}},{"cve":"CVE-2021-43816","published":"2022-01-05","fixed":"1.5.9","kev":false},{"cve":"CVE-2022-23648","published":"2022-03-03","fixed":"1.6.1","kev":false}],"package":"Go:github.com/containerd/containerd"}}