# CVE-2021-43816: Improper Preservation of Permissions in containerd

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-01-05 · Modified: 2025-04-22
- Aliases: MGASA-2022-0071, UBUNTU-CVE-2021-43816, DEBIAN-CVE-2021-43816, GHSA-mvff-h3cj-wj9c, GO-2022-0278, ALPINE-CVE-2021-43816
- Record: https://cvemate.com/vulnerability/CVE-2021-43816 · JSON: https://cvemate.com/vulnerability/CVE-2021-43816/json

## Description

```text
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.
```

## Signals

- CVSS: 9.1 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- EPSS: 1.809%, percentile 79.363%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine containerd (Alpine Linux): ≥ 1.5.1, \< 1.5.9-r0
- containerd containerd: ≥ 1.5.0, \< 1.5.9
- debian containerd (Debian): \< 1.5.9~ds1-1
- ubuntu containerd (Ubuntu): All versions (No fix recorded) \| \< 1.5.9-0ubuntu1~18.04.1 \| \< 1.5.9-0ubuntu1~20.04.4 \| \< 1.5.9-0ubuntu1
- fedoraproject fedora: 34 \| 35
- github.com/containerd containerd (Go): ≥ 1.5.0, \< 1.5.9
- linuxfoundation containerd: ≥ 1.5.1, \< 1.5.9 \| 1.5.0 \| 1.5.0:beta0 \| 1.5.0:beta1 \| 1.5.0:beta2 \| 1.5.0:beta3 \| 1.5.0:beta4 \| 1.5.0:rc0 \| 1.5.0:rc1 \| 1.5.0:rc2 \| 1.5.0:rc3
- mageia docker-containerd (Mageia): \< 1.5.9-1.mga8

## References

- <https://github.com/containerd/containerd/security/advisories/GHSA-mvff-h3cj-wj9c>
- <https://github.com/containerd/containerd/issues/6194>
- <https://github.com/containerd/containerd/commit/a731039238c62be081eb8c31525b988415745eea>
- <https://github.com/dweomer/containerd/commit/f7f08f0e34fb97392b0d382e58916d6865100299>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GD5GH7NMK5VJMA2Y5CYB5O5GTPYMWMLX/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID/>
- <https://advisories.mageia.org/MGASA-2022-0071.html>
- <https://bugs.mageia.org/show_bug.cgi?id=30050>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID/>
- <https://ubuntu.com/security/CVE-2021-43816>
- <https://www.cve.org/CVERecord?id=CVE-2021-43816>
- <https://security-tracker.debian.org/tracker/CVE-2021-43816>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43816>
- <https://github.com/containerd/containerd>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GD5GH7NMK5VJMA2Y5CYB5O5GTPYMWMLX>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID>
- <https://security.alpinelinux.org/vuln/CVE-2021-43816>

---

Data as of 2026-12-05T04:58:36.304Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
