cve.bz

CVE-2021-21334 Exposure of Resource to Wrong Sphere

6.3 mediumEPSS 1.9%Fix available

Medium (6.3). EPSS 1.9% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/containerd/containerd 1.3.10, 1.4.4.

On this page
In containerd (an industry-standard container runtime) before versions 1.3.10 and 1.4.4, containers launched through containerd's CRI implementation (through Kubernetes, crictl, or any other pod/container client that uses the containerd CRI service) that share the same image may receive incorrect environment variables, including values that are defined for other containers. If the affected containers have different security contexts, this may allow sensitive information to be unintentionally shared. If you are not using containerd's CRI implementation (through one of the mechanisms described above), you are not vulnerable to this issue. If you are not launching multiple containers or Kubernetes pods from the same image which have different environment variables, you are not vulnerable to this issue. If you are not launching multiple containers or Kubernetes pods from the same image in rapid succession, you have reduced likelihood of being vulnerable to this issue This vulnerability has been fixed in containerd 1.3.10 and containerd 1.4.4. Users should update to these versions.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-668 Exposure of Resource to Wrong Sphere
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-21334 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21334?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21334?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-21334 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:containerdbefore 1.3.10
linuxfoundation:containerdfrom 1.4.0 before 1.4.4
fedoraproject:fedora33
fedoraproject:fedora34

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6g2q-w5j3-fwh4Gogithub.com/containerd/containerd>=1.4.0 <1.4.41.4.4
GHSA-6g2q-w5j3-fwh4Gogithub.com/containerd/containerd<1.3.101.3.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14containerd1.4.4~ds1-1DEBIAN-CVE-2021-21334
Ubuntu18.04:LTScontainerd1.5.2-0ubuntu1~18.04.2UBUNTU-CVE-2021-21334
Ubuntu20.04:LTScontainerd1.3.3-0ubuntu2.3UBUNTU-CVE-2021-21334 USN-4881-1
UbuntuPro:16.04:LTScontainerdno fix listedUBUNTU-CVE-2021-21334
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 14 morerunc1.0.0~rc93-1.14.2SUSE-SU-2021:1954-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 13 morecontainerd1.4.4-5.32.1SUSE-SU-2021:1954-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 13 moredocker20.10.6_ce-6.49.3SUSE-SU-2021:1954-1
SUSELinux Enterprise Module for Containers 12containerd1.4.4-16.38.1SUSE-SU-2021:1458-1
SUSELinux Enterprise Module for Containers 12docker20.10.6_ce-98.66.1SUSE-SU-2021:1458-1
SUSELinux Enterprise Module for Containers 12runc1.0.0~rc93-16.8.1SUSE-SU-2021:1458-1
openSUSELeap 15.2containerd1.4.4-lp152.2.6.1openSUSE-SU-2021:0878-1
openSUSELeap 15.2docker20.10.6_ce-lp152.2.12.1openSUSE-SU-2021:0878-1
openSUSELeap 15.2runc1.0.0~rc93-lp152.2.3.1openSUSE-SU-2021:0878-1
openSUSELeap 15.3containerd1.4.4-5.32.1openSUSE-SU-2021:1954-1
openSUSELeap 15.3docker20.10.6_ce-6.49.3openSUSE-SU-2021:1954-1
openSUSELeap 15.3runc1.0.0~rc93-1.14.2openSUSE-SU-2021:1954-1
openSUSETumbleweedcontainerd1.4.8-2.2openSUSE-SU-2024:10693-1
Alpinev3.12, v3.13, v3.14 and 10 morecontainerd1.4.4-r0ALPINE-CVE-2021-21334
Alpinev3.14, v3.15, v3.16 and 8 morek3s1.20.5.1-r0ALPINE-CVE-2021-21334
Azure Linux3cri-ono fix listedAZL-44910
Azure Linux3kata-containers-previewno fix listedAZL-81209

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Whilst in OpenShift Container Platform (OCP) there are containers which contain a vulnerable version containerd, they do not import the code from https://github.com/containerd/containerd/tree/master/pkg/cri and hence are not vulnerable to this flaw.

OpenShift Virtualization vendors in containerd in some containers, however none of them depend on it and do not import the code from https://github.com/containerd/containerd/tree/master/pkg/cri and hence are not vulnerable to this flaw.

Red Hat Advanced Cluster Management for Kubernetes (RHACM) includes containerd for the multicloud operators subscription. However, the CRI plugin is not being used in this component, hence RHACM is not affected by this flaw.

Red Hat Quay's builder, and setup operators do make use of the containerd module, but not the vulnerable cri plugin. Therefore they are not affected.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Management for Kubernetes 2containerdNot affected
Red Hat OpenShift Container Platform 4cri-oNot affected
Red Hat OpenShift Container Platform 4openshiftNot affected
Red Hat OpenShift Container Platform 4openshift-clientsNot affected
Red Hat Openshift Container Storage 4ocs4/cephcsi-rhel8Not affected
Red Hat Openshift Container Storage 4ocs4/mcg-rhel8-operatorNot affected
Red Hat Openshift Container Storage 4ocs4/ocs-must-gather-rhel8Not affected
Red Hat Openshift Container Storage 4ocs4/ocs-rhel8-operatorNot affected
Red Hat Openshift Container Storage 4ocs4/rook-ceph-rhel8-operatorNot affected
Red Hat OpenShift Virtualization 2cluster-network-addons-operator-containerNot affected
Red Hat OpenShift Virtualization 2cnv-containernetworking-plugins-containerNot affected
Red Hat OpenShift Virtualization 2container-native-virtualization/vm-import-controllerNot affected
Red Hat OpenShift Virtualization 2container-native-virtualization/vm-import-controller-rhel8Not affected
Red Hat OpenShift Virtualization 2hostpath-provisioner-containerNot affected
Red Hat OpenShift Virtualization 2hostpath-provisioner-operator-containerNot affected
Red Hat OpenShift Virtualization 2hyperconverged-cluster-operator-containerNot affected
Red Hat OpenShift Virtualization 2hyperconverged-cluster-webhook-containerNot affected
Red Hat OpenShift Virtualization 2kubemacpool-containerNot affected
Red Hat OpenShift Virtualization 2kubernetes-nmstate-handler-containerNot affected
Red Hat OpenShift Virtualization 2node-maintenance-operatorNot affected
11 more in the JSON and on Red Hat's page.

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-21334.

References

Check your stackJSON