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

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.81%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-05T18:55:10.000Z
- Modified: 2026-07-08T06:28:50.902Z
- Also known as: GHSA-mvff-h3cj-wj9c, GO-2022-0278
- Weaknesses: CWE-281
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- containerd containerd: >= 1.5.0, < 1.5.9
- github.com/containerd/containerd (Go): from 1.5.0 before 1.5.9
- linuxfoundation containerd: from 1.5.1 before 1.5.9; 1.5.0
- fedoraproject fedora: 34; 35

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.0 Medium `AV:N/AC:M/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/containerd/containerd/issues/6194> (exploit, issue-tracking, report, third-party-advisory, web)
- <https://github.com/containerd/containerd/security/advisories/GHSA-mvff-h3cj-wj9c> (advisory, third-party-advisory, web)
- <https://github.com/containerd/containerd/commit/a731039238c62be081eb8c31525b988415745eea> (fix, patch, third-party-advisory, web)
- <https://github.com/dweomer/containerd/commit/f7f08f0e34fb97392b0d382e58916d6865100299> (patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GD5GH7NMK5VJMA2Y5CYB5O5GTPYMWMLX/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43816> (advisory)
- <https://github.com/containerd/containerd> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GD5GH7NMK5VJMA2Y5CYB5O5GTPYMWMLX> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID> (web)

## Sources

- CVE List: [CVE-2021-43816](https://www.cve.org/CVERecord?id=CVE-2021-43816), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-mvff-h3cj-wj9c](https://github.com/advisories/GHSA-mvff-h3cj-wj9c), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2022-0278](https://pkg.go.dev/vuln/GO-2022-0278), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2021-43816](https://nvd.nist.gov/vuln/detail/CVE-2021-43816), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43816 · Whole record: https://cve.day/CVE-2021-43816.json · Rebuilt by cve.day 2026-11-25T22:24:36.454Z
