VDB

CVE-2021-43816

CVE-2021-43816 PUBLISHED CVSS 8 HIGH

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

CVSS 3.1
8
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
containerdcontainerd>= 1.5.0, < 1.5.9
containerdcontainerd1.5.0
alpinecontainerd0
github.comcontainerd/containerd1.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›