CVE-2021-21334environment variable leak
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | containerd | Fixed | 1.3.3-0ubuntu2.3 | UBUNTU-CVE-2021-21334 |
| Ubuntu 18.04 | containerd | Fixed | 1.5.2-0ubuntu1~18.04.2 | UBUNTU-CVE-2021-21334 |
| Ubuntu 16.04 | containerd | Fix pending | UBUNTU-CVE-2021-21334 | |
| Debian 14 | containerd | Fixed | 1.4.4~ds1-1 | DEBIAN-CVE-2021-21334 |
| Debian 13 | containerd | Fixed | 1.4.4~ds1-1 | DEBIAN-CVE-2021-21334 |
| Debian 12 | containerd | Fixed | 1.4.4~ds1-1 | DEBIAN-CVE-2021-21334 |
| Alpine Linux 3.24 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.24 | k3s | Fixed | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.23 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.23 | k3s | Fixed | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.22 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.22 | k3s | Fixed | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.21 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.21 | k3s | Fixed | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.20 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.20 | k3s | Fixed | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.19 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.19 | k3s | Fixed | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.18 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.18 | k3s | Fixed | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.17 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.17 | k3s | Fixed | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.16 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.16 | k3s | Fixed | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.15 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.15 | k3s | Fixed | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.14 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.14 | k3s | Fixed | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.13 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine Linux 3.12 | containerd | Fixed | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Go library | github.com/containerd/containerd | Fixed | 1.4.4 | GHSA-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.
- containerd: affected: < 1.3.10, >= 1.4.0, < 1.4.4
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202105-33 (vendor-advisory)
References
- https://github.com/containerd/containerd/security/advisories/GHSA-6g2q-w5j3-fwh4
- https://github.com/containerd/containerd/releases/tag/v1.4.4
- https://github.com/containerd/containerd/releases/tag/v1.3.10
- https://github.com/containerd/containerd/commit/05f951a3781f4f2c1911b05e61c160e9c30eaa8e
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KUE2Z2ZUWBHRU36ZGBD2YSJCYB6ELPXE/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QIBPKSX5IOWPM3ZPFB3JVLXWDHSZTTWT/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VTXHA5JOWQRCCUZH7ZQBEYN6KZKJEYSD/
- https://security.gentoo.org/glsa/202105-33
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.