cve.bz

CVE-2021-43816 Improper Preservation of Permissions

9.1 criticalExploit referenceEPSS 1.8%Fix available

Critical (9.1). EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/containerd/containerd 1.5.9.

On this page
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.

Severity

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
EPSS
1.8% (unchanged from 1.8% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-281 Improper Preservation of Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-43816 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-43816?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-43816?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-43816 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linuxfoundation:containerdfrom 1.5.1 before 1.5.9
linuxfoundation:containerd1.5.0
linuxfoundation:containerd1.5.0:beta0
linuxfoundation:containerd1.5.0:beta1
linuxfoundation:containerd1.5.0:beta2
linuxfoundation:containerd1.5.0:beta3
linuxfoundation:containerd1.5.0:beta4
linuxfoundation:containerd1.5.0:rc0
linuxfoundation:containerd1.5.0:rc1
linuxfoundation:containerd1.5.0:rc2
linuxfoundation:containerd1.5.0:rc3
fedoraproject:fedora34
fedoraproject:fedora35

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mvff-h3cj-wj9cGogithub.com/containerd/containerd>=1.5.0 <1.5.91.5.9
GO-2022-0278Gogithub.com/containerd/containerd>=1.5.0 <1.5.91.5.9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14containerd1.5.9~ds1-1DEBIAN-CVE-2021-43816
Ubuntu18.04:LTScontainerd1.5.9-0ubuntu1~18.04.1UBUNTU-CVE-2021-43816
Ubuntu20.04:LTScontainerd1.5.9-0ubuntu1~20.04.4UBUNTU-CVE-2021-43816
Ubuntu22.04:LTScontainerd1.5.9-0ubuntu1UBUNTU-CVE-2021-43816
UbuntuPro:16.04:LTScontainerdno fix listedUBUNTU-CVE-2021-43816
Alpinev3.15, v3.16, v3.17 and 7 morecontainerd1.5.9-r0ALPINE-CVE-2021-43816

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Because Red Hat OpenStack Platform's director-operator does not use hostPath volumes, the RHOSP Impact has been rated Low impact and no updates will be provided at this time for its containers.

In Red Hat OpenShift Container Platform (OCP) the containerd package is not actually used, but because the containerd API is supported the core OCP components are listed as affected by this CVE and the impact is reduced to Low.

ProductPackageStateAdvisory
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2containerdNot affected
Red Hat Advanced Cluster Management for Kubernetes 2multicloud-operators-channel-containerAffected
Red Hat Advanced Cluster Management for Kubernetes 2multicloud-operators-subscription-containerAffected
Red Hat Advanced Cluster Management for Kubernetes 2multicloud-operators-subscription-release-containerAffected
Red Hat Advanced Cluster Management for Kubernetes 2multicluster-hub-repo-containerAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/prometheus-rhel9Affected
Red Hat OpenShift Container Platform 4cri-oNot affected
Red Hat OpenShift Container Platform 4openshiftAffected
Red Hat OpenShift Container Platform 4openshift-clientsWill not fix
Red Hat OpenStack Platform 16.2osp-director-provisioner-containerWill not fix
Red Hat OpenStack Platform 16.2rhosp-rhel8/osp-director-downloaderWill not fix
Red Hat OpenStack Platform 16.2rhosp-rhel8-tech-preview/osp-director-operatorWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-43816.

References

Check your stackJSON