CVEfocus › CVE database › CVE-2021-21334

CVE-2021-21334environment variable leak

CVSS 6.3 MediumEPSS 1.9% (higher than 81% of CVEs)Published 2021-03-10Updated 2024-08-03Assigner: GitHub_M

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.

CWE-668

What to do

Fixed builds are available from Alpine, Debian, Go, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

30Fixed
1Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04containerdFixed1.3.3-0ubuntu2.3UBUNTU-CVE-2021-21334
Ubuntu 18.04containerdFixed1.5.2-0ubuntu1~18.04.2UBUNTU-CVE-2021-21334
Ubuntu 16.04containerdFix pendingUBUNTU-CVE-2021-21334
Debian 14containerdFixed1.4.4~ds1-1DEBIAN-CVE-2021-21334
Debian 13containerdFixed1.4.4~ds1-1DEBIAN-CVE-2021-21334
Debian 12containerdFixed1.4.4~ds1-1DEBIAN-CVE-2021-21334
Alpine Linux 3.24containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.24k3sFixed1.20.5.1-r0ALPINE-CVE-2021-21334
Alpine Linux 3.23containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.23k3sFixed1.20.5.1-r0ALPINE-CVE-2021-21334
Alpine Linux 3.22containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.22k3sFixed1.20.5.1-r0ALPINE-CVE-2021-21334
Alpine Linux 3.21containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.21k3sFixed1.20.5.1-r0ALPINE-CVE-2021-21334
Alpine Linux 3.20containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.20k3sFixed1.20.5.1-r0ALPINE-CVE-2021-21334
Alpine Linux 3.19containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.19k3sFixed1.20.5.1-r0ALPINE-CVE-2021-21334
Alpine Linux 3.18containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.18k3sFixed1.20.5.1-r0ALPINE-CVE-2021-21334
Alpine Linux 3.17containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.17k3sFixed1.20.5.1-r0ALPINE-CVE-2021-21334
Alpine Linux 3.16containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.16k3sFixed1.20.5.1-r0ALPINE-CVE-2021-21334
Alpine Linux 3.15containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.15k3sFixed1.20.5.1-r0ALPINE-CVE-2021-21334
Alpine Linux 3.14containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.14k3sFixed1.20.5.1-r0ALPINE-CVE-2021-21334
Alpine Linux 3.13containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Alpine Linux 3.12containerdFixed1.4.4-r0ALPINE-CVE-2021-21334
Go librarygithub.com/containerd/containerdFixed1.4.4GHSA-6g2q-w5j3-fwh4

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.