Vulnerability · Published Mar 10, 2021 · Assigned by GitHub_M
CVE-2021-21334environment variable leak
Medium 6.3
In plain English
A medium-severity security flaw in containerd from containerd. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | containerd | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine:v3.21 | containerd | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine:v3.22 | containerd | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine:v3.23 | containerd | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine:v3.24 | containerd | 1.4.4-r0 | ALPINE-CVE-2021-21334 |
| Alpine:v3.20 | k3s | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine:v3.21 | k3s | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine:v3.22 | k3s | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine:v3.23 | k3s | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Alpine:v3.24 | k3s | 1.20.5.1-r0 | ALPINE-CVE-2021-21334 |
| Debian:12 | containerd | 1.4.4~ds1-1 | DEBIAN-CVE-2021-21334 |
| Debian:13 | containerd | 1.4.4~ds1-1 | DEBIAN-CVE-2021-21334 |
| Debian:14 | containerd | 1.4.4~ds1-1 | DEBIAN-CVE-2021-21334 |
| Go | github.com/containerd/containerd | 1.3.10 | GHSA-6g2q-w5j3-fwh4 |
| Go | github.com/containerd/containerd | 1.4.4 | GHSA-6g2q-w5j3-fwh4 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| containerd | containerd | < 1.3.10>= 1.4.0, < 1.4.4 |
Weakness: CWE-668 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/containerd/containerd/security/advisories/GHSA-6g2q-w5j3-fwh4 x_refsource_CONFIRM
- https://github.com/containerd/containerd/releases/tag/v1.4.4 x_refsource_MISC
- https://github.com/containerd/containerd/releases/tag/v1.3.10 x_refsource_MISC
- https://github.com/containerd/containerd/commit/05f951a3781f4f2c1911b05e61c160e9c30eaa8e x_refsource_MISC
- FEDORA-2021-470fa24f5b vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-10ce8fcbf1 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-f049305892 vendor-advisory, x_refsource_FEDORA
- GLSA-202105-33 vendor-advisory, x_refsource_GENTOO