CVE-2021-32760
Archive package allows chmod of file outside of unpack target directory
Reported by github_m · Published July 19, 2021
github.com/containerd/containerd is fixed in 1.5.4 and 1.4.8 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/containerd/containerd | Go Modules | 1.5.4, 1.4.8 |
| ctop | Wolfi | 0.7.7-r13 |
| containerd | linuxfoundation | 1.5.4, 1.4.8 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| containerd | containerd | <= 1.4.7, >= 1.5.0, <= 1.5.3 |
| wolfi | ctop | 0 |
| containerd | containerd | 1.5.0, 0 |
| alpine | containerd | 0, 0 |
| github.com | containerd/containerd | 0, 1.5.0 |
| arch | containerd | 0 |
| chainguard | ctop | 0 |
Timeline
- Jul 19, 2021 CVE Published
- Jul 20, 2021 EPSS Score (30 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (5 in total, the first dated here)
- Mar 7, 2026 Security Advisory (11 in total, the first dated here)
- Aug 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-32760
vulnetix vdb fixes CVE-2021-32760
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32760/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2021-53ce601cb0 vendor-advisory
- GLSA-202401-31 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2021-32760 advisory