CVE-2021-43816
Improper Preservation of Permissions in containerd
Reported by github_m · Published January 5, 2022
containerd is an open source container runtime. On installations using SELinux, such as EL8 (CentOS, RHEL), Fedora, or SUSE MicroOS, with containerd since v1.5.0-beta.0 as the backing container runtime interface (CRI), an unprivileged pod scheduled to the node may bind mount, via hostPath volume, any privileged, regular file on disk for complete read/write access (sans delete). Such is achieved by placing the in-container location of the hostPath volume mount at either `/etc/hosts`, `/etc/hostname`, or `/etc/resolv.conf`. These locations are being relabeled indiscriminately to match the container process-label which effectively elevates permissions for savvy containers that would not normally be able to access privileged host files. This issue has been resolved in version 1.5.9. Users are advised to upgrade as soon as possible.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| containerd | containerd | >= 1.5.0, < 1.5.9 |
| containerd | containerd | 1.5.0 |
| alpine | containerd | 0 |
| github.com | containerd/containerd | 1.5.0 |
Timeline
- Jan 5, 2022 CVE Published
- Jan 6, 2022 EPSS Score (30 in total, the first dated here)
- Apr 4, 2022 CVE Updated
- Mar 17, 2026 Security Advisory (27 in total, the first dated here)
- Jul 17, 2026 Coalition ESS Score
- Oct 9, 2026 Distribution Patch (26 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-43816
vulnetix vdb fixes CVE-2021-43816
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-43816/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2022-f668c3d70d vendor-advisoryx_refsource_FEDORA
- FEDORA-2022-a0b2a4d594 vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2021-43816 advisory