CVE-2021-43816
CRITICAL 9.1CVSS 3.1Unprivileged pod using `hostPath` can side-step active LSM when it is SELinux
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.
- Published
- 5 Jan 2022
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-281
- Also known as
- GHSA-mvff-h3cj-wj9cGO-2022-0278
- Sources
- NVDJSONOSV GHSA-mvff-h3cj-wj9cJSONOSV GO-2022-0278JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.0 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.0 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | containerdcpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:* |
>= 1.5.1, < 1.5.9 | 1.5.9 |
| NVD | linuxfoundation | containerdcpe:2.3:a:linuxfoundation:containerd:1.5.0:-:*:*:*:*:*:* |
= 1.5.0 | |
| NVD | linuxfoundation | containerdcpe:2.3:a:linuxfoundation:containerd:1.5.0:beta0:*:*:*:*:*:* |
= 1.5.0 | |
| NVD | linuxfoundation | containerdcpe:2.3:a:linuxfoundation:containerd:1.5.0:beta1:*:*:*:*:*:* |
= 1.5.0 | |
| NVD | linuxfoundation | containerdcpe:2.3:a:linuxfoundation:containerd:1.5.0:beta2:*:*:*:*:*:* |
= 1.5.0 | |
| NVD | linuxfoundation | containerdcpe:2.3:a:linuxfoundation:containerd:1.5.0:beta3:*:*:*:*:*:* |
= 1.5.0 | |
| NVD | linuxfoundation | containerdcpe:2.3:a:linuxfoundation:containerd:1.5.0:beta4:*:*:*:*:*:* |
= 1.5.0 | |
| NVD | linuxfoundation | containerdcpe:2.3:a:linuxfoundation:containerd:1.5.0:rc0:*:*:*:*:*:* |
= 1.5.0 | |
| NVD | linuxfoundation | containerdcpe:2.3:a:linuxfoundation:containerd:1.5.0:rc1:*:*:*:*:*:* |
= 1.5.0 | |
| NVD | linuxfoundation | containerdcpe:2.3:a:linuxfoundation:containerd:1.5.0:rc2:*:*:*:*:*:* |
= 1.5.0 | |
| NVD | linuxfoundation | containerdcpe:2.3:a:linuxfoundation:containerd:1.5.0:rc3:*:*:*:*:*:* |
= 1.5.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
= 35 | |
| OSV | Go | github.com/containerd/containerd | >= 1.5.0, < 1.5.9 | 1.5.9 |
References
- https://github.com/containerd/containerd/commit/a731039238c62be081eb8c31525b988415745eea · Patch, Third Party Advisory, WEB, FIX
- https://github.com/containerd/containerd/issues/6194 · Exploit, Issue Tracking, Third Party Advisory, WEB, REPORT
- https://github.com/containerd/containerd/security/advisories/GHSA-mvff-h3cj-wj9c · Third Party Advisory, WEB, ADVISORY
- 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/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID/
- 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 5 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Jan 2022)