CVE-2021-43816
containerd SELinux Privilege Escalation Vulnerability
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.
INFO
Published Date :
Jan. 5, 2022, 7:15 p.m.
Last Modified :
Nov. 7, 2023, 3:39 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
6.0
Exploitability Score :
2.3
Public PoC/Exploit Available at Github
CVE-2021-43816 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
Affected Products
The following products are affected by CVE-2021-43816
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-43816
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
⚙ DevSecOps Kubernetes Playground ("A Hacker's Guide to Kubernetes")
Dockerfile Shell Ruby Smarty Jinja HCL
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-43816
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-43816
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GD5GH7NMK5VJMA2Y5CYB5O5GTPYMWMLX/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID/ [No types assigned] Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID/ Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/GD5GH7NMK5VJMA2Y5CYB5O5GTPYMWMLX/ -
Modified Analysis by [email protected]
Apr. 01, 2022
Action Type Old Value New Value Changed Reference Type https://github.com/containerd/containerd/commit/a731039238c62be081eb8c31525b988415745eea Issue Tracking, Patch https://github.com/containerd/containerd/commit/a731039238c62be081eb8c31525b988415745eea Patch, Third Party Advisory Changed Reference Type https://github.com/containerd/containerd/issues/6194 Issue Tracking, Technical Description https://github.com/containerd/containerd/issues/6194 Exploit, Issue Tracking, Third Party Advisory Changed Reference Type https://github.com/containerd/containerd/security/advisories/GHSA-mvff-h3cj-wj9c Vendor Advisory https://github.com/containerd/containerd/security/advisories/GHSA-mvff-h3cj-wj9c Third Party Advisory Changed Reference Type https://github.com/dweomer/containerd/commit/f7f08f0e34fb97392b0d382e58916d6865100299 Issue Tracking https://github.com/dweomer/containerd/commit/f7f08f0e34fb97392b0d382e58916d6865100299 Patch, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/GD5GH7NMK5VJMA2Y5CYB5O5GTPYMWMLX/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/GD5GH7NMK5VJMA2Y5CYB5O5GTPYMWMLX/ Mailing List, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID/ Mailing List, Third Party Advisory Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Feb. 15, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID/ [No Types Assigned] Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/GD5GH7NMK5VJMA2Y5CYB5O5GTPYMWMLX/ [No Types Assigned] -
Initial Analysis by [email protected]
Jan. 18, 2022
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:M/Au:S/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H Changed Reference Type https://github.com/containerd/containerd/commit/a731039238c62be081eb8c31525b988415745eea No Types Assigned https://github.com/containerd/containerd/commit/a731039238c62be081eb8c31525b988415745eea Issue Tracking, Patch Changed Reference Type https://github.com/containerd/containerd/issues/6194 No Types Assigned https://github.com/containerd/containerd/issues/6194 Issue Tracking, Technical Description Changed Reference Type https://github.com/containerd/containerd/security/advisories/GHSA-mvff-h3cj-wj9c No Types Assigned https://github.com/containerd/containerd/security/advisories/GHSA-mvff-h3cj-wj9c Vendor Advisory Changed Reference Type https://github.com/dweomer/containerd/commit/f7f08f0e34fb97392b0d382e58916d6865100299 No Types Assigned https://github.com/dweomer/containerd/commit/f7f08f0e34fb97392b0d382e58916d6865100299 Issue Tracking Added CWE NIST CWE-281 Added CPE Configuration OR *cpe:2.3:a:linuxfoundation:containerd:1.5.0:-:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.5.0:beta0:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.5.0:beta1:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.5.0:beta2:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.5.0:beta3:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.5.0:beta4:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.5.0:rc0:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.5.0:rc1:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.5.0:rc2:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.5.0:rc3:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:* versions from (including) 1.5.1 up to (excluding) 1.5.9
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-43816
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-43816
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.50 }} 0.11%
score
0.75801
percentile