CVE-2021-32760
mediumpriority · track · 26EPSS 0.016 · 76 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (17)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-1002Amazon Linux 2: Mehrere SchwachstellenDeutsch2021-12-08csaf · cert_bundDE
Ein lokaler Angreifer kann mehrere Schwachstellen in Amazon Linux 2 ausnutzen, um Informationen offenzulegen, Dateien zu manipulieren oder falsche Informationen darzustellen.
- GHSA-c72p-9xmj-rx3wArchive package allows chmod of file outside of unpack target directory2021-07-26ghsa · osvUS
## Impact A 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. ## Patches This 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. ## Workarounds Ensure you 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 unexpected files. ## For more information If you have any questions or comments about this advisory: * [Open an issue](https://github.com/containerd/containerd/issues/new/choose) * Email us at security@containerd.io if you think you’ve found a security bug.
- GO-2022-0921Archive package allows chmod of file outside of unpack target directory in github.com/containerd/containerd2024-08-21vendor · osvUS
Archive package allows chmod of file outside of unpack target directory in github.com/containerd/containerd
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (25)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2021-32760cnnvd
- https://github.com/containerd/containerd/releases/tag/v1.4.8cnnvd
- https://github.com/containerd/containerd/releases/tag/v1.5.4cnnvd
- https://github.com/containerd/containerd/security/advisories/GHSA-c72p-9xmj-rx3wcnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DDMNDPJJTP3J5GOEDB66F6MGXUTRG3Y3/cnnvd
- https://packetstormsecurity.com/files/163563/Ubuntu-Security-Notice-USN-5012-1.htmlcnnvd
- https://packetstormsecurity.com/files/167116/Red-Hat-Security-Advisory-2022-2183-01.htmlcnnvd
- https://vigilance.fr/vulnerability/containerd-privilege-escalation-via-File-Chmod-35929cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan